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

Issue 2641213002: Issue 28100. In strong mode verify that TypeParameter bound has required type arguments. (Closed)

Created:
3 years, 11 months ago by scheglov
Modified:
3 years, 11 months ago
Reviewers:
Leaf, Brian Wilkerson
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -9 lines) Patch
M pkg/analyzer/lib/error/error.dart View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/analyzer/lib/src/error/codes.dart View 1 chunk +6 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/generated/error_verifier.dart View 2 chunks +14 lines, -0 lines 2 comments Download
M pkg/analyzer/test/generated/resolver_test_case.dart View 1 chunk +4 lines, -2 lines 0 comments Download
M pkg/analyzer/test/generated/strong_mode_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer/test/src/task/strong/checker_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer/test/src/task/strong/inferred_type_test.dart View 4 chunks +7 lines, -5 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
scheglov
3 years, 11 months ago (2017-01-19 19:17:55 UTC) #1
Brian Wilkerson
lgtm
3 years, 11 months ago (2017-01-19 19:27:04 UTC) #2
scheglov
Committed patchset #1 (id:1) manually as c7487dfaea1f0938385701aa062763e0f26747ad (presubmit successful).
3 years, 11 months ago (2017-01-19 21:25:56 UTC) #4
Leaf
https://codereview.chromium.org/2641213002/diff/1/pkg/analyzer/lib/src/generated/error_verifier.dart File pkg/analyzer/lib/src/generated/error_verifier.dart (right): https://codereview.chromium.org/2641213002/diff/1/pkg/analyzer/lib/src/generated/error_verifier.dart#newcode5207 pkg/analyzer/lib/src/generated/error_verifier.dart:5207: if (type is InterfaceType && type.element.typeParameters.isNotEmpty) { I don't ...
3 years, 11 months ago (2017-01-20 01:43:16 UTC) #5
scheglov
3 years, 11 months ago (2017-01-20 15:36:26 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/2641213002/diff/1/pkg/analyzer/lib/src/genera...
File pkg/analyzer/lib/src/generated/error_verifier.dart (right):

https://codereview.chromium.org/2641213002/diff/1/pkg/analyzer/lib/src/genera...
pkg/analyzer/lib/src/generated/error_verifier.dart:5207: if (type is
InterfaceType && type.element.typeParameters.isNotEmpty) {
On 2017/01/20 01:43:16, Leaf wrote:
> I don't think this handles nested types.  This perhaps should have been made
> more clear in the proposal, but the intent with proposal 2 is that all types
in
> the bound need to be instantiated.  I think this check here still allows
> 
> class A<T extends List<List>> {}

ACK.
https://codereview.chromium.org/2646983003 will fix this.

Powered by Google App Engine
This is Rietveld 408576698