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
declareconstfoo: `foo${number}`
foo==='bar'// no error even though types are incompatibleconstbar: `foo${number}` ='bar'//error: Type '"bar"' is not assignable to type '`foo${number}`'
π Actual behavior
no error when comparing the incompatible types
π Expected behavior
the same error that occurs when you do the same thing in typescript <=4.2.3
This condition will always return 'false' since the types '`foo${number}`' and '"bar"' have no overlap.(2367)
The text was updated successfully, but these errors were encountered:
Bug Report
π Search Terms
This condition will always return 'false'
π Version & Regression Information
β― Playground Link
π» Code
π Actual behavior
no error when comparing the incompatible types
π Expected behavior
the same error that occurs when you do the same thing in typescript <=4.2.3
The text was updated successfully, but these errors were encountered: