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
declare global {
module g.m{enumE{A,B}}}declarevarx: g.m.E;declarefunctionnever(never: never): never;functionfn(){switch(x){caseg.m.E.A: return1;caseg.m.E.B: return2;default: returnnever(x);// <-- x expected to be never, actual g.m.E}}
The text was updated successfully, but these errors were encountered:
I also found this to be annoying and I wish the compiler could at least do this for switches :(
I first thought this could be a bug on but I guess it's not angular/clutz#663
IIUC when this bug gets fixed, then it should be fixed for any kind of enums, not just numeric enums, right?
The text was updated successfully, but these errors were encountered: