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

Issue 1847953002: Report wrong async function result type as type error in checked mode (Fixes #26133). (Closed)

Created:
4 years, 8 months ago by regis
Modified:
4 years, 7 months ago
Reviewers:
hausner
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Report wrong async function result type as type error in checked mode (Fixes #26133). Add regression test. R=hausner@google.com Committed: https://github.com/dart-lang/sdk/commit/508b876ec8ff84a774accff97554e434d399f34d

Patch Set 1 #

Patch Set 2 : catch error in async lib #

Patch Set 3 : different approach #

Total comments: 2

Patch Set 4 : address comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -3 lines) Patch
M runtime/vm/ast.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/parser.cc View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
M tests/language/async_return_types_test.dart View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A tests/language/regress_26133_test.dart View 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
regis
4 years, 7 months ago (2016-05-09 20:07:36 UTC) #2
hausner
LGTM https://codereview.chromium.org/1847953002/diff/40001/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://codereview.chromium.org/1847953002/diff/40001/runtime/vm/parser.cc#newcode10052 runtime/vm/parser.cc:10052: LetNode* checked_expr = new(Z) LetNode(statement_pos); Should this point ...
4 years, 7 months ago (2016-05-09 21:42:34 UTC) #3
regis
Thanks! https://codereview.chromium.org/1847953002/diff/40001/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://codereview.chromium.org/1847953002/diff/40001/runtime/vm/parser.cc#newcode10052 runtime/vm/parser.cc:10052: LetNode* checked_expr = new(Z) LetNode(statement_pos); On 2016/05/09 21:42:34, ...
4 years, 7 months ago (2016-05-09 21:58:23 UTC) #4
regis
4 years, 7 months ago (2016-05-09 22:06:51 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
508b876ec8ff84a774accff97554e434d399f34d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698