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

Issue 2655273008: fix #28526 and fix #28527 FutureOr<T> in await and subtype (Closed)

Created:
3 years, 10 months ago by Jennifer Messerly
Modified:
3 years, 10 months ago
Reviewers:
Leaf
CC:
reviews_dartlang.org, Bob Nystrom
Target Ref:
refs/heads/master
Visibility:
Public.

Description

fix #28526, await FutureOr<T> fix #28527, FutureOr<T> subtyping with type parameters For subtyping: we've had a long standing issue in how inference reuses the <: operator code. Inference needs to make sure constraints are recorded on the type parameters we're inferring, but it also needs to correctly implement the future or union. This change addresses that & is a step towards the bigger inference change upcoming that tracks top/bottom constraints explicitly. R=leafp@google.com Committed: https://github.com/dart-lang/sdk/commit/39977ac6ec58516f5db5ac4df9fa2426fc19dac5

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : fix #

Total comments: 4

Patch Set 4 : fix coments #

Patch Set 5 : fix comment again #

Patch Set 6 : update baseline #

Patch Set 7 : fix #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -207 lines) Patch
M pkg/analyzer/lib/src/generated/static_type_analyzer.dart View 1 chunk +12 lines, -9 lines 0 comments Download
M pkg/analyzer/lib/src/generated/type_system.dart View 1 2 3 4 5 6 8 chunks +36 lines, -33 lines 1 comment Download
M pkg/analyzer/test/generated/strong_mode_test.dart View 1 2 3 12 chunks +113 lines, -165 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
Jennifer Messerly
Most of these test changes are from Bob, I've added a couple of cases. Thanks ...
3 years, 10 months ago (2017-01-27 21:05:09 UTC) #4
Leaf
lgtm https://codereview.chromium.org/2655273008/diff/40001/pkg/analyzer/lib/src/generated/type_system.dart File pkg/analyzer/lib/src/generated/type_system.dart (right): https://codereview.chromium.org/2655273008/diff/40001/pkg/analyzer/lib/src/generated/type_system.dart#newcode1556 pkg/analyzer/lib/src/generated/type_system.dart:1556: // TODO(jmesserly): to match old behavior, the trivial ...
3 years, 10 months ago (2017-01-27 21:34:55 UTC) #5
Jennifer Messerly
thanks, fixed those comments https://codereview.chromium.org/2655273008/diff/40001/pkg/analyzer/lib/src/generated/type_system.dart File pkg/analyzer/lib/src/generated/type_system.dart (right): https://codereview.chromium.org/2655273008/diff/40001/pkg/analyzer/lib/src/generated/type_system.dart#newcode1556 pkg/analyzer/lib/src/generated/type_system.dart:1556: // TODO(jmesserly): to match old ...
3 years, 10 months ago (2017-01-27 22:39:19 UTC) #6
Jennifer Messerly
Hi Leaf, can you take a quick look at the one small fix in TypeSystem.dart? ...
3 years, 10 months ago (2017-01-27 23:04:49 UTC) #7
Leaf
lgtm.
3 years, 10 months ago (2017-01-27 23:20:28 UTC) #8
Jennifer Messerly
3 years, 10 months ago (2017-01-27 23:23:39 UTC) #10
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
39977ac6ec58516f5db5ac4df9fa2426fc19dac5 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698