-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no break for switch #1118
Comments
It's omitting the
suddenly the |
Right, it's clearly a bug in our code to detect whether a break is necessary (which we added to make eslint happier, IIRC). |
I think it's assuming that the inner |
No, surprisingly -- if you add an |
I would expect a
break
in this code at the end of thewhen 0
blockbut it's not there in the output.
It's different when the same thing is not inside the function
Now the break is included (of course this code is not valid because of the top level
return
but yeah..)Currently using noFallthroughCasesInSwitch in tsconfig.json to spot these errors.
The text was updated successfully, but these errors were encountered: