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

Issue 2205993002: fix #26990, incorrect substitution of upper bound (Closed)

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

Description

fix #26990, incorrect substitution of upper bound We were handling the "extends" clause too early, when we did not have enough information to correctly substitute it. So we tried to substitute later on, but this breaks cases where we (correctly) inferred using the argument types. The fix is to move the "extends" clause handling to a place where we have the inferred types for our preceding type variables available. R=leafp@google.com Committed: https://github.com/dart-lang/sdk/commit/0fe54a637a16b5875fbe18c4dbb628602db75783

Patch Set 1 #

Total comments: 6

Patch Set 2 : fix f-bounded #

Patch Set 3 : sort #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -29 lines) Patch
M pkg/analyzer/lib/src/generated/type_system.dart View 1 7 chunks +44 lines, -29 lines 0 comments Download
M pkg/analyzer/test/src/summary/resynthesize_ast_test.dart View 1 1 chunk +6 lines, -0 lines 0 comments Download
M pkg/analyzer/test/src/task/strong/inferred_type_test.dart View 1 2 2 chunks +30 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Jennifer Messerly
4 years, 4 months ago (2016-08-02 21:50:31 UTC) #3
Leaf
lgtm https://codereview.chromium.org/2205993002/diff/1/pkg/analyzer/lib/src/generated/type_system.dart File pkg/analyzer/lib/src/generated/type_system.dart (right): https://codereview.chromium.org/2205993002/diff/1/pkg/analyzer/lib/src/generated/type_system.dart#newcode1280 pkg/analyzer/lib/src/generated/type_system.dart:1280: _TypeParameterBound bound = _bounds[typeParam]; Move this down to ...
4 years, 4 months ago (2016-08-02 23:20:27 UTC) #4
Jennifer Messerly
Hey Leaf, you may want to take another look at this for the f-bounded handling. ...
4 years, 4 months ago (2016-08-03 00:12:41 UTC) #5
Leaf
lgtm, thanks!
4 years, 4 months ago (2016-08-03 00:25:03 UTC) #6
Jennifer Messerly
4 years, 4 months ago (2016-08-03 15:31:18 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
0fe54a637a16b5875fbe18c4dbb628602db75783 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698