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
With strictNullChecks option I would expect an error in line 2 similar to the one in line 6. Something of the form "This condition will always return 'false'... "
TypeScript Version: 3.6.3
Search Terms:
strictNullChecks
Code
Expected behavior:
With
strictNullChecks
option I would expect an error in line 2 similar to the one in line 6. Something of the form "This condition will always return 'false'... "Actual behavior:
No error in line 2
Playground Link:
https://www.typescriptlang.org/play/index.html?noImplicitAny=false&strictFunctionTypes=false&strictPropertyInitialization=false&strictBindCallApply=false&noImplicitThis=false&noImplicitReturns=false&alwaysStrict=false&esModuleInterop=false&target=2&ssl=13&ssc=9&pln=1&pc=1#code/MYewdgzgLgBAhjAvDAFADwFwzAVwLYBGApgE4CUWuhpSAfDAN4CwAUDDAJYBmqaSiyXABshZRq3btQkEEKIA6ISADmKAIxkA3BJgBfVju69+yAOTKSACxJRTY5m0nSIshUtUbtj-Sx0kiUDgkYDBoXrperHAowqKaQA
The text was updated successfully, but these errors were encountered: