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

Issue 12033049: Disallow mixing in classes that use 'super'. (Closed)

Created:
7 years, 11 months ago by kasperl
Modified:
7 years, 11 months ago
Reviewers:
Johnni Winther, ahe
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Disallow mixing in classes that use 'super'. R=johnniwinther@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=17527

Patch Set 1 #

Patch Set 2 : Add comment. #

Patch Set 3 : Update test expectations. #

Patch Set 4 : Move mixin uses list to compiler.world. #

Total comments: 6

Patch Set 5 : Improve error message. #

Patch Set 6 : Analyzer passes the tests. #

Total comments: 1

Patch Set 7 : Fix comment. #

Patch Set 8 : Merge from master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -11 lines) Patch
M sdk/lib/_internal/compiler/implementation/elements/elements.dart View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/resolution/members.dart View 1 2 3 4 5 chunks +55 lines, -9 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/warnings.dart View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/world.dart View 1 2 3 4 chunks +10 lines, -2 lines 0 comments Download
M tests/language/language.status View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
A tests/language/mixin_illegal_super_use_test.dart View 1 2 3 4 5 6 1 chunk +69 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
kasperl
7 years, 11 months ago (2013-01-23 11:31:17 UTC) #1
ahe
I'd like to understand what a mixin use is. If it is what I think ...
7 years, 11 months ago (2013-01-23 11:36:58 UTC) #2
kasperl
On 2013/01/23 11:36:58, ahe wrote: > I'd like to understand what a mixin use is. ...
7 years, 11 months ago (2013-01-23 11:40:18 UTC) #3
ahe
On 2013/01/23 11:40:18, kasperl wrote: > A mixin application uses a class as a mixin. ...
7 years, 11 months ago (2013-01-23 11:55:14 UTC) #4
ahe
On 2013/01/23 11:55:14, ahe wrote: > On 2013/01/23 11:40:18, kasperl wrote: > > A mixin ...
7 years, 11 months ago (2013-01-23 11:58:03 UTC) #5
kasperl
On 2013/01/23 11:58:03, ahe wrote: > On 2013/01/23 11:55:14, ahe wrote: > > On 2013/01/23 ...
7 years, 11 months ago (2013-01-23 12:04:04 UTC) #6
kasperl
Uploaded new version with the mixin uses stored in compiler.world. PTAL.
7 years, 11 months ago (2013-01-23 12:19:26 UTC) #7
ahe
Took a quick look (my brain is used up for today) and I didn't spot ...
7 years, 11 months ago (2013-01-23 12:32:09 UTC) #8
kasperl
https://codereview.chromium.org/12033049/diff/11001/sdk/lib/_internal/compiler/implementation/resolution/members.dart File sdk/lib/_internal/compiler/implementation/resolution/members.dart (right): https://codereview.chromium.org/12033049/diff/11001/sdk/lib/_internal/compiler/implementation/resolution/members.dart#newcode568 sdk/lib/_internal/compiler/implementation/resolution/members.dart:568: compiler.reportMessage(compiler.spanFromNode(use), On 2013/01/23 12:32:10, ahe wrote: > I'm not ...
7 years, 11 months ago (2013-01-23 12:41:54 UTC) #9
kasperl
https://codereview.chromium.org/12033049/diff/11001/tests/language/mixin_illegal_super_use_test.dart File tests/language/mixin_illegal_super_use_test.dart (right): https://codereview.chromium.org/12033049/diff/11001/tests/language/mixin_illegal_super_use_test.dart#newcode61 tests/language/mixin_illegal_super_use_test.dart:61: typedef F = Object with P2, M; On 2013/01/23 ...
7 years, 11 months ago (2013-01-23 12:42:31 UTC) #10
kasperl
PTAL. https://codereview.chromium.org/12033049/diff/11001/sdk/lib/_internal/compiler/implementation/resolution/members.dart File sdk/lib/_internal/compiler/implementation/resolution/members.dart (right): https://codereview.chromium.org/12033049/diff/11001/sdk/lib/_internal/compiler/implementation/resolution/members.dart#newcode568 sdk/lib/_internal/compiler/implementation/resolution/members.dart:568: compiler.reportMessage(compiler.spanFromNode(use), On 2013/01/23 12:32:10, ahe wrote: > I'm ...
7 years, 11 months ago (2013-01-23 13:41:25 UTC) #11
Johnni Winther
7 years, 11 months ago (2013-01-24 08:19:09 UTC) #12
lgtm

https://codereview.chromium.org/12033049/diff/13002/tests/language/mixin_ille...
File tests/language/mixin_illegal_super_use_test.dart (right):

https://codereview.chromium.org/12033049/diff/13002/tests/language/mixin_ille...
tests/language/mixin_illegal_super_use_test.dart:38: // P1 class and its bar
method to be resolved before resolve the
resolve => resolving

Powered by Google App Engine
This is Rietveld 408576698