mirror of
https://github.com/dart-lang/sdk
synced 2024-10-01 19:29:09 +00:00
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:
parent
de545b4079
commit
2d8bf7751e
17
CHANGELOG.md
17
CHANGELOG.md
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue