You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Invalid code typechecks in generators with strictNullChecks #22290
Expected behavior:
I would expect yield; (without expression) to be forbidden if the generator return type (IterableIterator<number>) doesn't allow undefined.
Actual behavior:
This compiles fine, prints 'undefined', '2' (we're essentially allowing undefined to be assigned to non-nullable number).
Activity