1
0
mirror of https://github.com/dart-lang/sdk synced 2024-07-03 00:08:46 +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:
Leaf Petersen 2019-05-29 22:53:47 +00:00 committed by commit-bot@chromium.org
parent d99d83ea09
commit c9ace73ffb

View File

@ -4,9 +4,20 @@
### 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
functions.
[35097]: https://github.com/dart-lang/sdk/issues/35097
### Core libraries
#### `dart:developer`