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

Issue 11416144: Produce run-time error when type parameters are accessed from static context. (Closed)

Created:
8 years ago by aam-me
Modified:
8 years ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Produce run-time error when type parameters are accessed from static context. BUG=dartbug.com/5231 TEST= Committed: https://code.google.com/p/dart/source/detail?r=15292

Patch Set 1 #

Patch Set 2 : Fixed dart2dart unchcked tests. #

Total comments: 21

Patch Set 3 : Throw malformed type exception in checked mode only. Code cleanup changes. #

Total comments: 2

Patch Set 4 : Removed redundant malformed type replacement with dynamic type. #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -37 lines) Patch
M sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart View 1 2 1 chunk +2 lines, -1 line 2 comments Download
M sdk/lib/_internal/compiler/implementation/elements/elements.dart View 1 2 4 chunks +25 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/namer.dart View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/resolution/members.dart View 1 2 3 10 chunks +41 lines, -20 lines 5 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/builder.dart View 1 2 2 chunks +6 lines, -1 line 2 comments Download
M sdk/lib/_internal/compiler/implementation/typechecker.dart View 1 2 3 chunks +21 lines, -0 lines 2 comments Download
M tests/co19/co19-dart2js.status View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M tests/language/language_dart2js.status View 1 2 2 chunks +0 lines, -12 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
aam-me
Hi, per Johnni's suggestion I picked up last part of https://chromiumcodereview.appspot.com/10996039/ as new changelist. Hopefully ...
8 years ago (2012-11-21 21:42:30 UTC) #1
ahe
Hi Alexander, Happy Thanksgiving. I would like to say that I'm thankful for your contributions ...
8 years ago (2012-11-22 12:41:30 UTC) #2
aam-me
Thank you, Peter! I'm glad I got some vacation days so I can work on ...
8 years ago (2012-11-23 02:16:46 UTC) #3
ahe
https://chromiumcodereview.appspot.com/11416144/diff/3001/sdk/lib/_internal/compiler/implementation/elements/elements.dart File sdk/lib/_internal/compiler/implementation/elements/elements.dart (right): https://chromiumcodereview.appspot.com/11416144/diff/3001/sdk/lib/_internal/compiler/implementation/elements/elements.dart#newcode1327 sdk/lib/_internal/compiler/implementation/elements/elements.dart:1327: final TypeAnnotation type; On 2012/11/23 02:16:47, aam wrote: > ...
8 years ago (2012-11-23 06:16:13 UTC) #4
aam-me
Thank you for the review, Peter! PTAL https://chromiumcodereview.appspot.com/11416144/diff/3001/sdk/lib/_internal/compiler/implementation/elements/elements.dart File sdk/lib/_internal/compiler/implementation/elements/elements.dart (right): https://chromiumcodereview.appspot.com/11416144/diff/3001/sdk/lib/_internal/compiler/implementation/elements/elements.dart#newcode1327 sdk/lib/_internal/compiler/implementation/elements/elements.dart:1327: final TypeAnnotation ...
8 years ago (2012-11-23 14:02:27 UTC) #5
ahe
LGTM! https://chromiumcodereview.appspot.com/11416144/diff/3001/sdk/lib/_internal/compiler/implementation/elements/elements.dart File sdk/lib/_internal/compiler/implementation/elements/elements.dart (right): https://chromiumcodereview.appspot.com/11416144/diff/3001/sdk/lib/_internal/compiler/implementation/elements/elements.dart#newcode1327 sdk/lib/_internal/compiler/implementation/elements/elements.dart:1327: final TypeAnnotation type; On 2012/11/23 14:02:27, aam wrote: ...
8 years ago (2012-11-23 15:26:09 UTC) #6
ngeoffray
LGTM! Thanks Alexander, that's a very nice change. https://chromiumcodereview.appspot.com/11416144/diff/8005/sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart File sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart (right): https://chromiumcodereview.appspot.com/11416144/diff/8005/sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart#newcode368 sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart:368: if ...
8 years ago (2012-11-27 09:37:34 UTC) #7
aam-me
Thank you, Nicolas, for the review! All good comments, but the CL is closed now ...
8 years ago (2012-11-28 01:49:46 UTC) #8
ahe
https://chromiumcodereview.appspot.com/11416144/diff/8005/sdk/lib/_internal/compiler/implementation/resolution/members.dart File sdk/lib/_internal/compiler/implementation/resolution/members.dart (right): https://chromiumcodereview.appspot.com/11416144/diff/8005/sdk/lib/_internal/compiler/implementation/resolution/members.dart#newcode1139 sdk/lib/_internal/compiler/implementation/resolution/members.dart:1139: // In checked mode malformed-ness of the type argument ...
8 years ago (2012-11-28 02:08:50 UTC) #9
aam-me
8 years ago (2012-11-29 05:18:06 UTC) #10
Message was sent while issue was closed.
Thank you, Peter.

I picked up the comments and addressed them in
https://chromiumcodereview.appspot.com/11348294/.

Powered by Google App Engine
This is Rietveld 408576698