Chromium Code Reviews

Issue 1685273002: fixes #25740, substitute type parameter bound taking into account outer scope type params (Closed)

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

Description

fixes #25740, substitute type parameter bound taking into account outer scope type params FunctionTypeImpl's "typeFormals" now works like its "parameters". typeFormals now propagates the substitution down to the List<TypeParameterElement>, like we already did for List<ParameterElement>. R=brianwilkerson@google.com, leafp@google.com Committed: https://github.com/dart-lang/sdk/commit/66e1a1d5f2cade6953a6202d7c9ec00ad7101b66

Patch Set 1 #

Total comments: 4

Patch Set 2 : merge #

Unified diffs Side-by-side diffs Stats (+128 lines, -35 lines)
M pkg/analyzer/lib/src/dart/element/member.dart View 1 chunk +62 lines, -0 lines 0 comments
M pkg/analyzer/lib/src/dart/element/type.dart View 2 chunks +17 lines, -5 lines 0 comments
M pkg/analyzer/test/src/task/strong/inferred_type_test.dart View 3 chunks +49 lines, -30 lines 0 comments

Messages

Total messages: 8 (3 generated)
Jennifer Messerly
https://codereview.chromium.org/1685273002/diff/1/pkg/analyzer/test/src/task/strong/inferred_type_test.dart File pkg/analyzer/test/src/task/strong/inferred_type_test.dart (right): https://codereview.chromium.org/1685273002/diff/1/pkg/analyzer/test/src/task/strong/inferred_type_test.dart#newcode1727 pkg/analyzer/test/src/task/strong/inferred_type_test.dart:1727: test('infer generic method type', () { moved 2 tests ...
4 years, 10 months ago (2016-02-10 21:42:18 UTC) #3
Brian Wilkerson
LGTM https://codereview.chromium.org/1685273002/diff/1/pkg/analyzer/lib/src/dart/element/member.dart File pkg/analyzer/lib/src/dart/element/member.dart (right): https://codereview.chromium.org/1685273002/diff/1/pkg/analyzer/lib/src/dart/element/member.dart#newcode943 pkg/analyzer/lib/src/dart/element/member.dart:943: static TypeParameterElement from( nit: I think our sorter ...
4 years, 10 months ago (2016-02-10 22:55:46 UTC) #4
Leaf
lgtm
4 years, 10 months ago (2016-02-11 19:18:12 UTC) #5
Jennifer Messerly
Thanks! https://codereview.chromium.org/1685273002/diff/1/pkg/analyzer/lib/src/dart/element/member.dart File pkg/analyzer/lib/src/dart/element/member.dart (right): https://codereview.chromium.org/1685273002/diff/1/pkg/analyzer/lib/src/dart/element/member.dart#newcode943 pkg/analyzer/lib/src/dart/element/member.dart:943: static TypeParameterElement from( On 2016/02/10 22:55:46, Brian Wilkerson ...
4 years, 10 months ago (2016-02-11 20:13:16 UTC) #6
Jennifer Messerly
4 years, 10 months ago (2016-02-11 20:13:25 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
66e1a1d5f2cade6953a6202d7c9ec00ad7101b66 (presubmit successful).

Powered by Google App Engine