mirror of
https://github.com/dart-lang/sdk
synced 2024-10-02 23:49:17 +00:00
Add breaking change notice for #44660
Bug: https://github.com/dart-lang/sdk/issues/44660 Change-Id: Ie0760c933a8adbc8b5964e38681c3f9e9dfef114 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/179584 Reviewed-by: Leaf Petersen <leafp@google.com> Reviewed-by: Kevin Moore <kevmoo@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
This commit is contained in:
parent
efa1e18428
commit
8d980974a0
24
CHANGELOG.md
24
CHANGELOG.md
|
@ -2,15 +2,21 @@
|
||||||
|
|
||||||
### Language
|
### Language
|
||||||
|
|
||||||
**Breaking Change** [Null
|
* **Breaking Change** [Null
|
||||||
Safety](https://dart.dev/null-safety/understanding-null-safety) is now enabled
|
Safety](https://dart.dev/null-safety/understanding-null-safety) is now
|
||||||
by default in all packages with a lower sdk constraint of 2.12.0 or greater.
|
enabled by default in all packages with a lower sdk constraint of 2.12.0 or
|
||||||
Files that are not subject to language versioning (whether because they are not
|
greater. Files that are not subject to language versioning (whether because
|
||||||
contained in a pub package, or because the package that they are contained in
|
they are not contained in a pub package, or because the package that they
|
||||||
has no lower sdk constraint) are treated as opted into to null safety by default
|
are contained in has no lower sdk constraint) are treated as opted into to
|
||||||
and may report new errors. Pub packages may be opted out of null safety by
|
null safety by default and may report new errors. Pub packages may be opted
|
||||||
setting a min sdk constraint in pubspec.yaml of 2.9.0 or less. Files may be
|
out of null safety by setting a min sdk constraint in pubspec.yaml of 2.9.0
|
||||||
opted out of null safety by adding `// @dart=2.9` to the beginning of the file.
|
or less. Files may be opted out of null safety by adding `// @dart=2.9` to
|
||||||
|
the beginning of the file.
|
||||||
|
|
||||||
|
* **Breaking Change** [#44660][]: Fixed an implementation bug where `this`
|
||||||
|
would sometimes undergo type promotion in extensions.
|
||||||
|
|
||||||
|
[#44660]: https://github.com/dart-lang/sdk/issues/44660
|
||||||
|
|
||||||
### Core libraries
|
### Core libraries
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue