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 S0 { } | 5 class S0 { } |
6 class S1 extends Object { } | 6 class S1 extends Object { } |
7 class S2 extends S0 { } | 7 class S2 extends S0 { } |
8 | 8 |
9 class M0 { } | 9 class M0 { } |
10 class M1 extends Object { } | 10 class M1 extends Object { } |
11 class M2 extends M0 { } | 11 class M2 extends M0 { } |
12 | 12 |
13 class C00 = S0 with M0; | 13 class C00 = S0 with M0; |
14 class C01 = S0 with M1; | 14 class C01 = S0 with M1; |
15 class C02 = S0 with M2; /// 01: compile-time error | 15 class C02 = S0 with M2; //# 01: compile-time error |
16 class C03 = S0 with M0, M1; | 16 class C03 = S0 with M0, M1; |
17 class C04 = S0 with M0, M2; /// 02: compile-time error | 17 class C04 = S0 with M0, M2; //# 02: compile-time error |
18 class C05 = S0 with M2, M0; /// 03: compile-time error | 18 class C05 = S0 with M2, M0; //# 03: compile-time error |
19 class C06 = S0 with M1, M2; /// 04: compile-time error | 19 class C06 = S0 with M1, M2; //# 04: compile-time error |
20 class C07 = S0 with M2, M1; /// 05: compile-time error | 20 class C07 = S0 with M2, M1; //# 05: compile-time error |
21 | 21 |
22 class C10 = S1 with M0; | 22 class C10 = S1 with M0; |
23 class C11 = S1 with M1; | 23 class C11 = S1 with M1; |
24 class C12 = S1 with M2; /// 06: compile-time error | 24 class C12 = S1 with M2; //# 06: compile-time error |
25 class C13 = S1 with M0, M1; | 25 class C13 = S1 with M0, M1; |
26 class C14 = S1 with M0, M2; /// 07: compile-time error | 26 class C14 = S1 with M0, M2; //# 07: compile-time error |
27 class C15 = S1 with M2, M0; /// 08: compile-time error | 27 class C15 = S1 with M2, M0; //# 08: compile-time error |
28 class C16 = S1 with M1, M2; /// 09: compile-time error | 28 class C16 = S1 with M1, M2; //# 09: compile-time error |
29 class C17 = S1 with M2, M1; /// 10: compile-time error | 29 class C17 = S1 with M2, M1; //# 10: compile-time error |
30 | 30 |
31 class C20 = S2 with M0; | 31 class C20 = S2 with M0; |
32 class C21 = S2 with M1; | 32 class C21 = S2 with M1; |
33 class C22 = S2 with M2; /// 11: compile-time error | 33 class C22 = S2 with M2; //# 11: compile-time error |
34 class C23 = S2 with M0, M1; | 34 class C23 = S2 with M0, M1; |
35 class C24 = S2 with M0, M2; /// 12: compile-time error | 35 class C24 = S2 with M0, M2; //# 12: compile-time error |
36 class C25 = S2 with M2, M0; /// 13: compile-time error | 36 class C25 = S2 with M2, M0; //# 13: compile-time error |
37 class C26 = S2 with M1, M2; /// 14: compile-time error | 37 class C26 = S2 with M1, M2; //# 14: compile-time error |
38 class C27 = S2 with M2, M1; /// 15: compile-time error | 38 class C27 = S2 with M2, M1; //# 15: compile-time error |
39 | 39 |
40 class D00 extends S0 with M0 { } | 40 class D00 extends S0 with M0 { } |
41 class D01 extends S0 with M1 { } | 41 class D01 extends S0 with M1 { } |
42 class D02 extends S0 with M2 { } /// 16: compile-time error | 42 class D02 extends S0 with M2 { } //# 16: compile-time error |
43 class D03 extends S0 with M0, M1 { } | 43 class D03 extends S0 with M0, M1 { } |
44 class D04 extends S0 with M0, M2 { } /// 17: compile-time error | 44 class D04 extends S0 with M0, M2 { } //# 17: compile-time error |
45 class D05 extends S0 with M2, M0 { } /// 18: compile-time error | 45 class D05 extends S0 with M2, M0 { } //# 18: compile-time error |
46 class D06 extends S0 with M1, M2 { } /// 19: compile-time error | 46 class D06 extends S0 with M1, M2 { } //# 19: compile-time error |
47 class D07 extends S0 with M2, M1 { } /// 20: compile-time error | 47 class D07 extends S0 with M2, M1 { } //# 20: compile-time error |
48 | 48 |
49 class D10 extends S1 with M0 { } | 49 class D10 extends S1 with M0 { } |
50 class D11 extends S1 with M1 { } | 50 class D11 extends S1 with M1 { } |
51 class D12 extends S1 with M2 { } /// 21: compile-time error | 51 class D12 extends S1 with M2 { } //# 21: compile-time error |
52 class D13 extends S1 with M0, M1 { } | 52 class D13 extends S1 with M0, M1 { } |
53 class D14 extends S1 with M0, M2 { } /// 22: compile-time error | 53 class D14 extends S1 with M0, M2 { } //# 22: compile-time error |
54 class D15 extends S1 with M2, M0 { } /// 23: compile-time error | 54 class D15 extends S1 with M2, M0 { } //# 23: compile-time error |
55 class D16 extends S1 with M1, M2 { } /// 24: compile-time error | 55 class D16 extends S1 with M1, M2 { } //# 24: compile-time error |
56 class D17 extends S1 with M2, M1 { } /// 25: compile-time error | 56 class D17 extends S1 with M2, M1 { } //# 25: compile-time error |
57 | 57 |
58 class D20 extends S2 with M0 { } | 58 class D20 extends S2 with M0 { } |
59 class D21 extends S2 with M1 { } | 59 class D21 extends S2 with M1 { } |
60 class D22 extends S2 with M2 { } /// 26: compile-time error | 60 class D22 extends S2 with M2 { } //# 26: compile-time error |
61 class D23 extends S2 with M0, M1 { } | 61 class D23 extends S2 with M0, M1 { } |
62 class D24 extends S2 with M0, M2 { } /// 27: compile-time error | 62 class D24 extends S2 with M0, M2 { } //# 27: compile-time error |
63 class D25 extends S2 with M2, M0 { } /// 28: compile-time error | 63 class D25 extends S2 with M2, M0 { } //# 28: compile-time error |
64 class D26 extends S2 with M1, M2 { } /// 29: compile-time error | 64 class D26 extends S2 with M1, M2 { } //# 29: compile-time error |
65 class D27 extends S2 with M2, M1 { } /// 30: compile-time error | 65 class D27 extends S2 with M2, M1 { } //# 30: compile-time error |
66 | 66 |
67 main() { | 67 main() { |
68 new C00(); | 68 new C00(); |
69 new C01(); | 69 new C01(); |
70 new C02(); /// 01: continued | 70 new C02(); //# 01: continued |
71 new C03(); | 71 new C03(); |
72 new C04(); /// 02: continued | 72 new C04(); //# 02: continued |
73 new C05(); /// 03: continued | 73 new C05(); //# 03: continued |
74 new C06(); /// 04: continued | 74 new C06(); //# 04: continued |
75 new C07(); /// 05: continued | 75 new C07(); //# 05: continued |
76 | 76 |
77 new C10(); | 77 new C10(); |
78 new C11(); | 78 new C11(); |
79 new C12(); /// 06: continued | 79 new C12(); //# 06: continued |
80 new C13(); | 80 new C13(); |
81 new C14(); /// 07: continued | 81 new C14(); //# 07: continued |
82 new C15(); /// 08: continued | 82 new C15(); //# 08: continued |
83 new C16(); /// 09: continued | 83 new C16(); //# 09: continued |
84 new C17(); /// 10: continued | 84 new C17(); //# 10: continued |
85 | 85 |
86 new C20(); | 86 new C20(); |
87 new C21(); | 87 new C21(); |
88 new C22(); /// 11: continued | 88 new C22(); //# 11: continued |
89 new C23(); | 89 new C23(); |
90 new C24(); /// 12: continued | 90 new C24(); //# 12: continued |
91 new C25(); /// 13: continued | 91 new C25(); //# 13: continued |
92 new C26(); /// 14: continued | 92 new C26(); //# 14: continued |
93 new C27(); /// 15: continued | 93 new C27(); //# 15: continued |
94 | 94 |
95 new D00(); | 95 new D00(); |
96 new D01(); | 96 new D01(); |
97 new D02(); /// 16: continued | 97 new D02(); //# 16: continued |
98 new D03(); | 98 new D03(); |
99 new D04(); /// 17: continued | 99 new D04(); //# 17: continued |
100 new D05(); /// 18: continued | 100 new D05(); //# 18: continued |
101 new D06(); /// 19: continued | 101 new D06(); //# 19: continued |
102 new D07(); /// 20: continued | 102 new D07(); //# 20: continued |
103 | 103 |
104 new D10(); | 104 new D10(); |
105 new D11(); | 105 new D11(); |
106 new D12(); /// 21: continued | 106 new D12(); //# 21: continued |
107 new D13(); | 107 new D13(); |
108 new D14(); /// 22: continued | 108 new D14(); //# 22: continued |
109 new D15(); /// 23: continued | 109 new D15(); //# 23: continued |
110 new D16(); /// 24: continued | 110 new D16(); //# 24: continued |
111 new D17(); /// 25: continued | 111 new D17(); //# 25: continued |
112 | 112 |
113 new D20(); | 113 new D20(); |
114 new D21(); | 114 new D21(); |
115 new D22(); /// 26: continued | 115 new D22(); //# 26: continued |
116 new D23(); | 116 new D23(); |
117 new D24(); /// 27: continued | 117 new D24(); //# 27: continued |
118 new D25(); /// 28: continued | 118 new D25(); //# 28: continued |
119 new D26(); /// 29: continued | 119 new D26(); //# 29: continued |
120 new D27(); /// 30: continued | 120 new D27(); //# 30: continued |
121 } | 121 } |
OLD | NEW |