Update CHANGELOG for continue label

Fixes #50902

Change-Id: I698d7a2531b30e398ff22a3fd7226e12df195f06
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/279343
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
This commit is contained in:
Ahmed Ashour 2023-02-08 17:44:17 +00:00 committed by Commit Queue
parent bd79be0e19
commit 50938dc767

View file

@ -1,5 +1,19 @@
## 3.0.0
### Language
- **Breaking Change** [#50902][]: Report a compile-time error for a `continue` statement
having an invalid target.
As per 18.15 of the language spec, it is a compile-time error for a `continue`
label to have a target which is not a loop (`for`, `do` and `while` statements)
or a `switch` member.
Breakage is mitigated by changing the code to have the `continue` label properly
target a valid labeled statement.
[#50902]: https://github.com/dart-lang/sdk/issues/50902
### Libraries
#### `dart:core`