CHANGELOG for invariant generic bounds

Change-Id: If7dcc07b9fb68e149814e8de42bbf6d9d0425a62
Reviewed-on: https://dart-review.googlesource.com/56621
Reviewed-by: Mike Fairhurst <mfairhurst@google.com>
This commit is contained in:
Leaf Petersen 2018-05-24 20:23:42 +00:00
parent de545b4079
commit 2d8bf7751e

View file

@ -4,6 +4,23 @@
### Language
The change to make bounds on generic functions invariant has landed in the
analyzer. The analyzer will now issue an invalid override error on the
following program ([issue 29014][sdk#29014]).
```dart
class A {
void f<T extends int>() {}
}
class B extends A {
@override
void f<T extends num>() {}
}
```
[sdk#29014]: https://github.com/dart-lang/sdk/issues/29014
#### Strong Mode
### Core library changes