mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 15:17:07 +00:00
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:
parent
bd79be0e19
commit
50938dc767
1 changed files with 14 additions and 0 deletions
14
CHANGELOG.md
14
CHANGELOG.md
|
@ -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`
|
||||
|
|
Loading…
Reference in a new issue