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
Adapted from real code seen in the wild:
func fn(x int) { switch x { case 0: println("we can do zero") default: println("we can't do x, we'll pretend it's 1") fallthrough case 1: println("we can do one") } }
Same issue exists when we fall into the default branch.
Updates #739
The text was updated successfully, but these errors were encountered:
443a993
ST1015: don't reorder cases around fallthrough statements
e05541b
Closes gh-1188 (cherry picked from commit 443a993)
354fb95
No branches or pull requests
Adapted from real code seen in the wild:
Same issue exists when we fall into the default branch.
Updates #739
The text was updated successfully, but these errors were encountered: