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
declareletcond: booleanfunctionz(){consta=Symbol()return{a: a}asconst}letx=z()lety=z()// Expected Error: Type 'typeof a' is not assignable to type 'typeof a'. Two different types with this name exist, but they are unrelated.if(cond){x=y}else{y=x}export{}
π Actual behavior
No type error
π Expected behavior
Type 'typeof a' is not assignable to type 'typeof a'. Two different types with this name exist, but they are unrelated.
The text was updated successfully, but these errors were encountered:
Bug Report
π Search Terms
unique symbol
π Version & Regression Information
Tested on 4.7.0
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
No type error
π Expected behavior
Type 'typeof a' is not assignable to type 'typeof a'. Two different types with this name exist, but they are unrelated.
The text was updated successfully, but these errors were encountered: