Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Unified Diff: CHANGELOG.md

Issue 2338293003: add a changelog entry for #27151 (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: CHANGELOG.md
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e1ed14455afada92704cd512a155a9927cb11747..85ec9b0aa744d2a31069f333d902872b41cfd528 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -58,6 +58,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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698