OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 class M { } | 5 class M { } |
6 class M0 extends Object with M0 { } /// 01: compile-time error | 6 class M0 extends Object with M0 { } // /// 01: compile-time error |
7 class M1 = Object with M1; /// 02: compile-time error | 7 class M1 = Object with M1; // /// 02: compile-time error |
8 | 8 |
9 class M2 = Object with M3; /// 03: compile-time error | 9 class M2 = Object with M3; // /// 03: compile-time error |
10 class M3 = Object with M2; /// 03: continued | 10 class M3 = Object with M2; // /// 03: continued |
11 | 11 |
12 class M4 = Object with M5; /// 04: compile-time error | 12 class M4 = Object with M5; // /// 04: compile-time error |
13 class M5 = Object with M6; /// 04: continued | 13 class M5 = Object with M6; // /// 04: continued |
14 class M6 = Object with M4; /// 04: continued | 14 class M6 = Object with M4; // /// 04: continued |
15 | 15 |
16 class M7 extends Object with M8 { } /// 05: compile-time error | 16 class M7 extends Object with M8 { } // /// 05: compile-time error |
17 class M8 extends Object with M7 { } /// 05: continued | 17 class M8 extends Object with M7 { } // /// 05: continued |
18 | 18 |
19 class M9 = Object with M91; /// 06: compile-time error | 19 class M9 = Object with M91; // /// 06: compile-time error |
20 class M91 = Object with M92; /// 06: continued | 20 class M91 = Object with M92; // /// 06: continued |
21 class M92 = Object with M91; /// 06: continued | 21 class M92 = Object with M91; // /// 06: continued |
22 | 22 |
23 main() { | 23 main() { |
24 new M0(); /// 01: continued | 24 new M0(); // /// 01: continued |
25 | 25 |
26 new M1(); /// 02: continued | 26 new M1(); // /// 02: continued |
27 | 27 |
28 new M2(); /// 03: continued | 28 new M2(); // /// 03: continued |
29 new M3(); /// 03: continued | 29 new M3(); // /// 03: continued |
30 | 30 |
31 new M4(); /// 04: continued | 31 new M4(); // /// 04: continued |
32 new M5(); /// 04: continued | 32 new M5(); // /// 04: continued |
33 new M6(); /// 04: continued | 33 new M6(); // /// 04: continued |
34 | 34 |
35 new M7(); /// 05: continued | 35 new M7(); // /// 05: continued |
36 new M8(); /// 05: continued | 36 new M8(); // /// 05: continued |
37 | 37 |
38 new M9(); /// 06: continued | 38 new M9(); // /// 06: continued |
39 } | 39 } |
OLD | NEW |