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
Having a singleton type type A = "a" | "b", a variable const a: A = "a", and an expression a === "c", the compiler should infer the type of "c" as A and make the expression unsound.
Currently (1.8.0 and 1.9.0-dev.20160206) it compiles, which makes usage of singleton types instead of enums less type safe.
Activity
RyanCavanaugh commentedon Feb 6, 2016
This is a good idea
weswigham commentedon Feb 8, 2016
#6196 should fix this, right?
vlad-shatskyi commentedon Feb 8, 2016
Yes, Wesley Wigham (@weswigham). Closing this issue.