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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ## 1.19.0 1 ## 1.19.0
2 2
3 ### Core library changes 3 ### Core library changes
4 4
5 * `dart:io` 5 * `dart:io`
6 * `Socket.connect` with source-address argument is now non-blocking 6 * `Socket.connect` with source-address argument is now non-blocking
7 on Mac. Was already non-blocking on all other platforms. 7 on Mac. Was already non-blocking on all other platforms.
8 * Report a better error when a bind fails because of a bad source address. 8 * Report a better error when a bind fails because of a bad source address.
9 9
10 ### Analyzer
11
12 * Strong mode breaking change - infer generic type arguments from the
13 constructor invocation arguments
14 (SDK issue [25220](https://github.com/dart-lang/sdk/issues/25220))
15
16 ```dart
17 var map = new Map<String, String>();
18
19 // infer: Map<String, String>
20 var otherMap = new Map.from(map);
21 ```
22
23 * Strong mode breaking change - infer local function return type
24 (SDK issue [26414](https://github.com/dart-lang/sdk/issues/26414))
25
26 ```dart
27 void main() {
28 // infer: return type is int
29 f() { return 40; }
30 int y = f() + 2; // type checks
31 print(y);
32 }
33 ```
34
10 ### Tool Changes 35 ### Tool Changes
11 36
12 * `dartfmt` - upgraded to v0.2.9 37 * `dartfmt` - upgraded to v0.2.9
13 * Support trailing commas in argument and parameter lists. 38 * Support trailing commas in argument and parameter lists.
14 * Gracefully handle read-only files. 39 * Gracefully handle read-only files.
15 * About a dozen other bug fixes. 40 * About a dozen other bug fixes.
16 41
17 * Pub 42 * Pub
18 * Added the ability for packages to declare a constraint on the [Flutter][] 43 * Added the ability for packages to declare a constraint on the [Flutter][]
19 SDK: 44 SDK:
(...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after
1100 they will keep the Dart process alive until they time out. This fixes the 1125 they will keep the Dart process alive until they time out. This fixes the
1101 handling of persistent connections. Previously, the client would shut down 1126 handling of persistent connections. Previously, the client would shut down
1102 immediately after a request. 1127 immediately after a request.
1103 1128
1104 * **Breaking change:** `HttpServer` no longer compresses all traffic by 1129 * **Breaking change:** `HttpServer` no longer compresses all traffic by
1105 default. The new `autoCompress` property can be set to `true` to re-enable 1130 default. The new `autoCompress` property can be set to `true` to re-enable
1106 compression. 1131 compression.
1107 1132
1108 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, 1133 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument,
1109 which controls how it resolves `package:` URIs. 1134 which controls how it resolves `package:` URIs.
OLDNEW
« 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