Unexpected error: This condition will always return 'false' since the types 'boolean' and 'number' have no overlap.(2367) #35925
Labels
Won't Fix
The severity and priority of this issue do not warrant the time or complexity needed to fix it
TypeScript Version: 3.7.2
Search Terms:
Code
Expected behavior:
if(true == 1)
should not produce an error as it istrue
in JS.Actual behavior:
if(true == 1)
produce this errorThis condition will always return 'false' since the types 'boolean' and 'number' have no overlap.(2367)
Playground Link:
Playground
Related Issues:
#35567
The text was updated successfully, but these errors were encountered: