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
The parser is confused by the exclamation mark. A simpler test case that also fails is:
a[0]!+=2
and also
a[0]!=2
This feature would be useful if the typescript type checker could show a warning when a[0] could be unset, causing an error when adding something to it. I haven't managed to obtain such warning in the typescript playground, so I wonder if this syntax is widely used.