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
I think the issue with #34974 is fairly specific to the usage of the type predicate. Since this control flow all happens inline, it looks more obviously buggy to me.
TypeScript Nightly version 3.8.0-dev.20191113
Playground link
Compiler Options:
Input:
Output:
Compiler error:
Object is possibly 'undefined'.(2532)
Expected behavior:
Successful compilation
Note:
(using
false
instead ofnull
) works as expected.Related issues:
#34570
#33806
The text was updated successfully, but these errors were encountered: