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

Issue 12041018: Disallow cyclic mixins. (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

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add extra test - simplify code. #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -3 lines) Patch
M sdk/lib/_internal/compiler/implementation/resolution/members.dart View 1 2 chunks +32 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/warnings.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/language/language.status View 1 1 chunk +7 lines, -0 lines 0 comments Download
A tests/language/mixin_illegal_cycles_test.dart View 1 1 chunk +39 lines, -0 lines 7 comments Download

Messages

Total messages: 6 (0 generated)
kasperl
7 years, 11 months ago (2013-01-22 12:57:30 UTC) #1
Johnni Winther
https://codereview.chromium.org/12041018/diff/1/sdk/lib/_internal/compiler/implementation/resolution/members.dart File sdk/lib/_internal/compiler/implementation/resolution/members.dart (right): https://codereview.chromium.org/12041018/diff/1/sdk/lib/_internal/compiler/implementation/resolution/members.dart#newcode2927 sdk/lib/_internal/compiler/implementation/resolution/members.dart:2927: } I don't think this handles the case when ...
7 years, 11 months ago (2013-01-22 13:16:41 UTC) #2
kasperl
On 2013/01/22 13:16:41, Johnni Winther wrote: > https://codereview.chromium.org/12041018/diff/1/sdk/lib/_internal/compiler/implementation/resolution/members.dart > File sdk/lib/_internal/compiler/implementation/resolution/members.dart (right): > > https://codereview.chromium.org/12041018/diff/1/sdk/lib/_internal/compiler/implementation/resolution/members.dart#newcode2927 ...
7 years, 11 months ago (2013-01-22 13:46:32 UTC) #3
Johnni Winther
lgtm
7 years, 11 months ago (2013-01-22 13:59:22 UTC) #4
ahe
DBC https://codereview.chromium.org/12041018/diff/5001/tests/language/mixin_illegal_cycles_test.dart File tests/language/mixin_illegal_cycles_test.dart (right): https://codereview.chromium.org/12041018/diff/5001/tests/language/mixin_illegal_cycles_test.dart#newcode6 tests/language/mixin_illegal_cycles_test.dart:6: class M0 extends Object with M0 { } ...
7 years, 11 months ago (2013-01-23 12:21:52 UTC) #5
kasperl
7 years, 11 months ago (2013-01-23 12:29:22 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/12041018/diff/5001/tests/language/mixin_illeg...
File tests/language/mixin_illegal_cycles_test.dart (right):

https://codereview.chromium.org/12041018/diff/5001/tests/language/mixin_illeg...
tests/language/mixin_illegal_cycles_test.dart:6: class M0 extends Object with M0
{ }  /// 01: compile-time error
On 2013/01/23 12:21:52, ahe wrote:
> Move "with M0" to its own line.

Not sure it's really that much better in this case. I understand that it would
work but it would make it less like the typedef case and I'm going for a
reasonably symmetric treatment of them in this test case.

Powered by Google App Engine
This is Rietveld 408576698