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: No error, first branch's x has type Dog, second branch's x has type string
Actual: Property 'toLowerCase' does not exist on type 'never'. (first branch is string | Dog, second is never)
We should be accounting for primitives a little less sloppily. instanceof checks don't work on primitive types.
The text was updated successfully, but these errors were encountered:
Try in the playground.
Expected: No error, first branch's
x
has typeDog
, second branch'sx
has typestring
Actual: Property 'toLowerCase' does not exist on type 'never'. (first branch is
string | Dog
, second isnever
)We should be accounting for primitives a little less sloppily.
instanceof
checks don't work on primitive types.The text was updated successfully, but these errors were encountered: