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
Expected behavior:
When strictNullChecks is turned on, the type of bar should be string | undefined. In the case above, it will definitely be undefined.
Actual behavior:
The type is string.
The text was updated successfully, but these errors were encountered:
TypeScript Version: 2.2.2
Code
Expected behavior:
When
strictNullChecks
is turned on, the type ofbar
should bestring | undefined
. In the case above, it will definitely be undefined.Actual behavior:
The type is
string
.The text was updated successfully, but these errors were encountered: