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

Issue 10996039: Bring type variables into static scope, but produce compile-time error when they are used. (Closed)

Created:
8 years, 2 months ago by aam-me
Modified:
8 years, 1 month ago
CC:
reviews_dartlang.org, ngeoffray, karlklose
Visibility:
Public.

Description

Bring type variables into static scope, but produce compile-time error when they are used. BUG=dartbug.com/5231 TEST=tests/language/type_variables_static_scoping_test.dart

Patch Set 1 #

Patch Set 2 : Removed passing test from the exception list. #

Total comments: 9

Patch Set 3 : Removed VariableScope, fixed the tests. #

Patch Set 4 : Just rebased #

Total comments: 6

Patch Set 5 : Produce warning and dynamic type error instead of compile-time error. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -25 lines) Patch
M lib/compiler/implementation/elements/elements.dart View 1 2 3 4 3 chunks +17 lines, -0 lines 0 comments Download
M lib/compiler/implementation/js_backend/namer.dart View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M lib/compiler/implementation/resolver.dart View 1 2 3 4 7 chunks +31 lines, -15 lines 3 comments Download
M lib/compiler/implementation/typechecker.dart View 1 2 3 4 2 chunks +16 lines, -0 lines 0 comments Download
M lib/compiler/implementation/warnings.dart View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M tests/co19/co19-dart2js.status View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 4 3 chunks +0 lines, -8 lines 0 comments Download
M tests/language/type_parameter_test.dart View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
aam-me
Peter, I'm curious what you think about this changelist. Is this close to what you ...
8 years, 2 months ago (2012-09-27 03:42:46 UTC) #1
ahe
Hi Alexander, Do you think i is possible to get rid of VariableScope? Cheers, Peter ...
8 years, 2 months ago (2012-10-02 07:50:25 UTC) #2
ngeoffray
Thanks Alexander for trying to fix this problem! https://chromiumcodereview.appspot.com/10996039/diff/1001/tests/language/type_variables_static_scoping_test.dart File tests/language/type_variables_static_scoping_test.dart (right): https://chromiumcodereview.appspot.com/10996039/diff/1001/tests/language/type_variables_static_scoping_test.dart#newcode13 tests/language/type_variables_static_scoping_test.dart:13: new ...
8 years, 2 months ago (2012-10-02 07:53:46 UTC) #3
Johnni Winther
lgtm https://chromiumcodereview.appspot.com/10996039/diff/1001/lib/compiler/implementation/elements/elements.dart File lib/compiler/implementation/elements/elements.dart (right): https://chromiumcodereview.appspot.com/10996039/diff/1001/lib/compiler/implementation/elements/elements.dart#newcode1130 lib/compiler/implementation/elements/elements.dart:1130: Scope buildScope() { Remove this method. MethodScope is ...
8 years, 2 months ago (2012-10-02 09:07:29 UTC) #4
aam-me
Thank you for the feedback, guys! Please, review when you have a chance. https://chromiumcodereview.appspot.com/10996039/diff/1001/lib/compiler/implementation/elements/elements.dart File ...
8 years, 2 months ago (2012-10-02 12:50:39 UTC) #5
Johnni Winther
https://chromiumcodereview.appspot.com/10996039/diff/1001/lib/compiler/implementation/elements/elements.dart File lib/compiler/implementation/elements/elements.dart (right): https://chromiumcodereview.appspot.com/10996039/diff/1001/lib/compiler/implementation/elements/elements.dart#newcode1130 lib/compiler/implementation/elements/elements.dart:1130: Scope buildScope() { On 2012/10/02 12:50:39, aam wrote: > ...
8 years, 2 months ago (2012-10-03 10:40:33 UTC) #6
ahe
I'm not sure about the test changes. Otherwise, this is awesome. https://chromiumcodereview.appspot.com/10996039/diff/8002/lib/compiler/implementation/elements/elements.dart File lib/compiler/implementation/elements/elements.dart (right): ...
8 years, 2 months ago (2012-10-04 07:51:02 UTC) #7
ahe
On 2012/10/04 07:51:02, ahe wrote: > I'm not sure about the test changes. Otherwise, this ...
8 years, 2 months ago (2012-10-04 08:28:39 UTC) #8
aam-me
To support dynamic type error instead of compile-time error I introduced malformed type and type ...
8 years, 2 months ago (2012-10-10 02:48:40 UTC) #9
karlklose
DBC: Should we perhaps use the erroneous element as the element of malformed? https://chromiumcodereview.appspot.com/10996039/diff/20001/lib/compiler/implementation/resolver.dart File ...
8 years, 2 months ago (2012-10-10 07:19:33 UTC) #10
Johnni Winther
Please put this CL on hold as it conflicts with a scope clean-up in progress.
8 years, 2 months ago (2012-10-18 06:19:32 UTC) #11
Johnni Winther
On 2012/10/18 06:19:32, Johnni Winther wrote: > Please put this CL on hold as it ...
8 years, 1 month ago (2012-11-21 14:39:57 UTC) #12
aam-me
8 years, 1 month ago (2012-11-21 21:43:19 UTC) #13
Okay, Johnni. I created https://codereview.chromium.org/11416144/ for runtime
behavior change. Closing this CL.

Powered by Google App Engine
This is Rietveld 408576698