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
constvalues: [number,string]=[1,'a'];constone=values[0];// number, OKconstindex=0;// index is `0` (not just a number)constanother=values[index];// expected number, actual: string | number <-- WHY?
The text was updated successfully, but these errors were encountered:
zpdDG4gta8XKpMCd
changed the title
literal type literals act differently than literal type expressions as indexes in index expressions
value literals act differently than literal type constants as indexes in index expressions
Oct 24, 2016
the other one was created a year ago and asking for something that didn't have a chassis to be made
this one just states the fact that 2 expressions of the exact same type give different results
nightly build Oct 24, 2016
The text was updated successfully, but these errors were encountered: