-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Closed
Copy link
Labels
area-metaCross-cutting, high-level issues (for tracking many other implementation issues, ...).Cross-cutting, high-level issues (for tracking many other implementation issues, ...).breaking-change-requestThis tracks requests for feedback on breaking changesThis tracks requests for feedback on breaking changes
Description
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.
mrverdant13
Metadata
Metadata
Assignees
Labels
area-metaCross-cutting, high-level issues (for tracking many other implementation issues, ...).Cross-cutting, high-level issues (for tracking many other implementation issues, ...).breaking-change-requestThis tracks requests for feedback on breaking changesThis tracks requests for feedback on breaking changes