-
Notifications
You must be signed in to change notification settings - Fork 1.3k
break allowed outside of loops #497
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
Comments
Can this be closed now? |
There are a few more edge cases not covered by the fix. Also a similar problem exists for |
The current fix probably cannot handle breaks in nested loops, because having only a boolean indicator
The One solution might be to use an integer to keep track of the level of nesting. |
Yeah, this is the edge case I was alluding to above. The |
@OddCoincidence please take a look at the PR #542 for the fix. Thank you~ |
The following should be a syntax error, but is allowed and causes a panic at runtime:
The text was updated successfully, but these errors were encountered: