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

Unified Diff: CHANGELOG.md

Issue 2209293002: fix #26414, infer return types of local functions (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: update changelog 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 | pkg/analyzer/lib/src/generated/static_type_analyzer.dart » ('j') | 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 c583667e3a6024bebdf5e58b4eb0294d4a157114..93617d67a4813ba54efc184b6fc2369c94784bba 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,28 @@
* `dart:io`
* Report a better error when a bind fails because of a bad source address.
+### Analyzer
+
+* Strong mode breaking change - infer generic type arguments from the onstructor invocation arguments (SDK issue [25220](https://github.com/dart-lang/sdk/issues/25220))
Leaf 2016/08/04 21:43:58 line length?
Leaf 2016/08/04 21:43:58 onstructor -> constructor
Jennifer Messerly 2016/08/04 22:11:12 hmmm. Not sure if it matters. I saw a few examples
+
+ ```dart
+ var map = new Map<String, String>();
+
+ // infer: Map<String, String>
+ var otherMap = new Map.from(map);
+ ```
+
+* Strong mode breaking change - infer local function return type (SDK issue [26414](https://github.com/dart-lang/sdk/issues/26414))
Leaf 2016/08/04 21:43:58 line length?
Jennifer Messerly 2016/08/04 22:11:12 Done.
+
+ ```dart
+ void main() {
+ // infer: return type is int
+ f() { return 40; }
+ int y = f() + 2; // type checks
+ print(y);
+ }
+ ```
+
### Tool Changes
* `dartfmt` - upgraded to v0.2.9
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/static_type_analyzer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698