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

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: mark failing ast inference 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 e88aeacbd282e7f533558a774d887477ad7719c0..e71f985c7da12dc04c8b697a7892cd4f07aea360 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,31 @@
on Mac. Was already non-blocking on all other platforms.
* 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
+ constructor invocation arguments
+ (SDK issue [25220](https://github.com/dart-lang/sdk/issues/25220))
+
+ ```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))
+
+ ```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