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

Unified Diff: CHANGELOG.md

Issue 2232583002: update changelog for recent strong mode fixes to future (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 35da026d4e020641c30d3fbd1f76b356cd07a0c0..b51bc4069d802a51ba02c1fdc9a36cc5e9aab801 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -30,7 +30,7 @@
* Breaking change - infer generic type arguments from the
constructor invocation arguments
- (SDK issue [25220](https://github.com/dart-lang/sdk/issues/25220))
+ (SDK issue [25220](https://github.com/dart-lang/sdk/issues/25220)).
```dart
var map = new Map<String, String>();
@@ -40,7 +40,7 @@
```
* Breaking change - infer local function return type
- (SDK issue [26414](https://github.com/dart-lang/sdk/issues/26414))
+ (SDK issue [26414](https://github.com/dart-lang/sdk/issues/26414)).
```dart
void main() {
@@ -52,7 +52,7 @@
```
* Breaking change - allow type promotion from a generic type parameter
- (SDK issue [26414](https://github.com/dart-lang/sdk/issues/26965))
+ (SDK issue [26414](https://github.com/dart-lang/sdk/issues/26965)).
```dart
void fn/*<T>*/(/*=T*/ object) {
@@ -64,6 +64,28 @@
}
```
+* Breaking change - smarter inference for Future.then
+ (SDK issue [25944](https://github.com/dart-lang/sdk/issues/25944)).
+ Previous workarounds that use async/await or `.then/*<Future<SomeType>>*/`
+ should no longer be necessary.
+
+ ```dart
+ // This will now infer correctly.
+ Future<List<int>> t2 = f.then((_) => [3]);
+ // This infers too.
+ Future<int> t2 = f.then((_) => new Future.value(42));
+ ```
+
+* Breaking change - smarter inference for async functions
+ (SDK issue [25322](https://github.com/dart-lang/sdk/issues/25322)).
+
+ ```dart
+ void test() async {
+ List<int> x = await [4]; // was previously inferred
+ List<int> y = await new Future.value([4]); // now inferred too
+ }
+ ```
+
### Dart VM
* The dependency on BoringSSL has been rolled forward. Going forward, builds
« 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