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

Side by Side Diff: tests/language/mixin_illegal_cycles_test.dart

Issue 12041018: Disallow cyclic mixins. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 class M { }
6 class M0 extends Object with M0 { } /// 01: compile-time error
7 typedef M1 = Object with M1; /// 02: compile-time error
8
9 typedef M2 = Object with M3; /// 03: compile-time error
10 typedef M3 = Object with M2; /// 03: continued
11
12 typedef M4 = Object with M5; /// 04: compile-time error
13 typedef M5 = Object with M6; /// 04: continued
14 typedef M6 = Object with M4; /// 04: continued
15
16 class M7 extends Object with M8 { } /// 05: compile-time error
17 class M8 extends Object with M7 { } /// 05: continued
18
19 main() {
20 new M0(); /// 01: continued
21
22 new M1(); /// 02: continued
23
24 new M2(); /// 03: continued
25 new M3(); /// 03: continued
26
27 new M4(); /// 04: continued
28 new M5(); /// 04: continued
29 new M6(); /// 04: continued
30
31 new M7(); /// 05: continued
32 new M8(); /// 05: continued
33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698