[Feature Request][move-compiler-v2] check for break/continue outside a loop should happen earlier in compilation #13708
Labels
compiler-v2-stable
compiler-v2
enhancement
New feature or request
stale-exempt
Prevents issues from being automatically marked and closed as stale
🚀 Feature Request
Currently, a break/continue outside a loop is detected in move-compiler-v2/src/bytecode_generator.rs:456, quite late in compilation.
This check should happen earlier in compilation.
It also means that tests of this can't be included in move-compiler-v2/tests/checking/ since those tests don't include bytecode generation.
The text was updated successfully, but these errors were encountered: