mirror of
https://github.com/dart-lang/sdk
synced 2024-10-02 23:39:19 +00:00
CHANGELOG entry for covariance in super-interfaces.
Change-Id: I4849bca9c5059757b89124c044bc99bfc83dfbfb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/104161 Reviewed-by: Kevin Moore <kevmoo@google.com> Commit-Queue: Leaf Petersen <leafp@google.com>
This commit is contained in:
parent
d99d83ea09
commit
c9ace73ffb
11
CHANGELOG.md
11
CHANGELOG.md
|
@ -4,9 +4,20 @@
|
||||||
|
|
||||||
### Language
|
### Language
|
||||||
|
|
||||||
|
* **Breaking change:** Covariance of type variables used in super-interfaces
|
||||||
|
is now enforced (issue [35097][]). For example, the following code was
|
||||||
|
previously accepted and will now be rejected:
|
||||||
|
|
||||||
|
```dart
|
||||||
|
class A<X> {};
|
||||||
|
class B<X> extends A<void Function(X)> {};
|
||||||
|
```
|
||||||
|
|
||||||
* The identifier `async` can now be used in asynchronous and generator
|
* The identifier `async` can now be used in asynchronous and generator
|
||||||
functions.
|
functions.
|
||||||
|
|
||||||
|
[35097]: https://github.com/dart-lang/sdk/issues/35097
|
||||||
|
|
||||||
### Core libraries
|
### Core libraries
|
||||||
|
|
||||||
#### `dart:developer`
|
#### `dart:developer`
|
||||||
|
|
Loading…
Reference in a new issue