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

Issue 2425143002: fix #27284, allow FutureUnionType to be preserved during generic inference (Closed)

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

Description

fix #27284, allow FutureUnionType to be preserved during generic inference R=leafp@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/7b5e6be4a82b831751dee8e4728b8b8bd4e870c0

Patch Set 1 #

Patch Set 2 : revert #

Patch Set 3 : fix comment #

Total comments: 2

Patch Set 4 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -12 lines) Patch
M pkg/analyzer/lib/src/generated/type_system.dart View 1 2 3 4 chunks +47 lines, -11 lines 0 comments Download
M pkg/analyzer/test/src/task/strong/inferred_type_test.dart View 2 chunks +15 lines, -1 line 0 comments Download

Messages

Total messages: 6 (2 generated)
Jennifer Messerly
4 years, 2 months ago (2016-10-18 01:22:02 UTC) #2
Leaf
lgtm. https://codereview.chromium.org/2425143002/diff/40001/pkg/analyzer/lib/src/generated/type_system.dart File pkg/analyzer/lib/src/generated/type_system.dart (right): https://codereview.chromium.org/2425143002/diff/40001/pkg/analyzer/lib/src/generated/type_system.dart#newcode1595 pkg/analyzer/lib/src/generated/type_system.dart:1595: lowerBound = DynamicTypeImpl.instance; This is probably true as ...
4 years, 2 months ago (2016-10-18 19:42:38 UTC) #3
Jennifer Messerly
Committed patchset #3 (id:40001) manually as 7b5e6be4a82b831751dee8e4728b8b8bd4e870c0 (presubmit successful).
4 years, 2 months ago (2016-10-18 22:55:34 UTC) #5
Jennifer Messerly
4 years, 2 months ago (2016-10-18 22:55:42 UTC) #6
Message was sent while issue was closed.
thanks!

https://codereview.chromium.org/2425143002/diff/40001/pkg/analyzer/lib/src/ge...
File pkg/analyzer/lib/src/generated/type_system.dart (right):

https://codereview.chromium.org/2425143002/diff/40001/pkg/analyzer/lib/src/ge...
pkg/analyzer/lib/src/generated/type_system.dart:1595: lowerBound =
DynamicTypeImpl.instance;
On 2016/10/18 19:42:38, Leaf wrote:
> This is probably true as it stands, but it feels a little fragile.  A ==
bottom
> breaks this if we start allowing bottom, and if we stop flattening, then
> Future<Future<A>> | Future<A> also breaks it.  What about using LUB here?

Good catch. I originally had it doing an LUB, not sure why I changed it. Fixed &
also fixed comment wording. :)

Powered by Google App Engine
This is Rietveld 408576698