Change
A compile-time error will be triggered for continue statement targeting invalid labeled statements (which are not for, do, while, or switch case).
Original issue is #49852, see also dart-lang/language#2586
Note: there is already continue_label_on_switch, which would be part of the new error.
Rationale
As per 18.15 of the specs, it is a compile-time error for the continue label to target non-loops or switch members.
Impact
There is a chance that some invalid usage is encountered.
Mitigation
Users have to change the code and properly target valid labeled statements.
Change
A compile-time error will be triggered for
continuestatement targeting invalid labeled statements (which are notfor,do,while, orswitchcase).Original issue is #49852, see also dart-lang/language#2586
Note: there is already continue_label_on_switch, which would be part of the new error.
Rationale
As per 18.15 of the specs, it is a compile-time error for the
continuelabel to target non-loops or switch members.Impact
There is a chance that some invalid usage is encountered.
Mitigation
Users have to change the code and properly target valid labeled statements.