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

Issue 1495263003: Allow return of Future in async function (Closed)

Created:
5 years ago by Leaf
Modified:
5 years ago
Reviewers:
vsm
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Allow return of Future in async function. Fixes dart-lang/dev_compiler#316 Fixes #24540 Fixes flutter/flutter#607 Fixes #25042 BUG= R=vsm@google.com Committed: https://github.com/dart-lang/sdk/commit/7f43d10eeb509c5141961d142ea705bc4d94103e

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rename duplicate tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -3 lines) Patch
M pkg/analyzer/lib/src/task/strong/checker.dart View 1 chunk +8 lines, -0 lines 0 comments Download
M pkg/analyzer/test/src/task/strong/checker_test.dart View 1 2 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (3 generated)
Leaf
5 years ago (2015-12-04 23:21:24 UTC) #3
vsm
lgtm https://codereview.chromium.org/1495263003/diff/1/pkg/analyzer/test/src/task/strong/checker_test.dart File pkg/analyzer/test/src/task/strong/checker_test.dart (right): https://codereview.chromium.org/1495263003/diff/1/pkg/analyzer/test/src/task/strong/checker_test.dart#newcode2368 pkg/analyzer/test/src/task/strong/checker_test.dart:2368: Future<int> foo4() async => (/*severe:StaticTypeError*/new Future<String>.value(/*info:DynamicCast*/x)); May want ...
5 years ago (2015-12-04 23:25:55 UTC) #4
Leaf
good catch, thanks. https://codereview.chromium.org/1495263003/diff/1/pkg/analyzer/test/src/task/strong/checker_test.dart File pkg/analyzer/test/src/task/strong/checker_test.dart (right): https://codereview.chromium.org/1495263003/diff/1/pkg/analyzer/test/src/task/strong/checker_test.dart#newcode2368 pkg/analyzer/test/src/task/strong/checker_test.dart:2368: Future<int> foo4() async => (/*severe:StaticTypeError*/new Future<String>.value(/*info:DynamicCast*/x)); ...
5 years ago (2015-12-04 23:30:03 UTC) #5
Leaf
5 years ago (2015-12-04 23:33:33 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
7f43d10eeb509c5141961d142ea705bc4d94103e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698