add a changelog entry for #27151

R=leafp@google.com

Review URL: https://codereview.chromium.org/2338293003 .
This commit is contained in:
John Messerly 2016-09-16 16:06:19 -07:00
parent fa9922d420
commit cbdfa87b88

View file

@ -73,6 +73,23 @@
}
```
* Breaking change - infer list and map literals from the context type as well as
their values, consistent with generic methods and instance creation
(SDK issue [27151](https://github.com/dart-lang/sdk/issues/27151)).
```dart
import 'dart:async';
main() async {
var b = new Future<B>.value(new B());
var c = new Future<C>.value(new C());
var/*infer List<Future<A>>*/ list = [b, c];
var/*infer List<A>*/ result = await Future.wait(list);
}
class A {}
class B extends A {}
class C extends A {}
```
## 1.19.0
### Language changes