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
Produces an 'unreachable code' error on the console.log.
If you put anything after the 'default:', e.g. 1; then it is accepted.
I imagine the empty default case is somehow being treated as terminal.
The text was updated successfully, but these errors were encountered:
evmar
changed the title
Empty "default" in a switch causes unreachable code
Empty "default" in a switch causes unreachable code error
May 25, 2016
Using TS master from May 23:
Produces an 'unreachable code' error on the
console.log
.If you put anything after the 'default:', e.g.
1;
then it is accepted.I imagine the empty default case is somehow being treated as terminal.
The text was updated successfully, but these errors were encountered: