| 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 { } |
| 7 class S2 extends S0 { } |
| 6 | 8 |
| 7 class S1 extends Object {} | 9 class M0 { } |
| 8 | 10 class M1 extends Object { } |
| 9 class S2 extends S0 {} | 11 class M2 extends M0 { } |
| 10 | |
| 11 class M0 {} | |
| 12 | |
| 13 class M1 extends Object {} | |
| 14 | |
| 15 class M2 extends M0 {} | |
| 16 | 12 |
| 17 class C00 = S0 with M0; | 13 class C00 = S0 with M0; |
| 18 class C01 = S0 with M1; | 14 class C01 = S0 with M1; |
| 19 class C02 = S0 with M2; // //# 01: compile-time error | 15 class C02 = S0 with M2; // //# 01: compile-time error |
| 20 class C03 = S0 with M0, M1; | 16 class C03 = S0 with M0, M1; |
| 21 class C04 = S0 with M0, M2; // //# 02: compile-time error | 17 class C04 = S0 with M0, M2; // //# 02: compile-time error |
| 22 class C05 = S0 with M2, M0; // //# 03: compile-time error | 18 class C05 = S0 with M2, M0; // //# 03: compile-time error |
| 23 class C06 = S0 with M1, M2; // //# 04: compile-time error | 19 class C06 = S0 with M1, M2; // //# 04: compile-time error |
| 24 class C07 = S0 with M2, M1; // //# 05: compile-time error | 20 class C07 = S0 with M2, M1; // //# 05: compile-time error |
| 25 | 21 |
| 26 class C10 = S1 with M0; | 22 class C10 = S1 with M0; |
| 27 class C11 = S1 with M1; | 23 class C11 = S1 with M1; |
| 28 class C12 = S1 with M2; // //# 06: compile-time error | 24 class C12 = S1 with M2; // //# 06: compile-time error |
| 29 class C13 = S1 with M0, M1; | 25 class C13 = S1 with M0, M1; |
| 30 class C14 = S1 with M0, M2; // //# 07: compile-time error | 26 class C14 = S1 with M0, M2; // //# 07: compile-time error |
| 31 class C15 = S1 with M2, M0; // //# 08: compile-time error | 27 class C15 = S1 with M2, M0; // //# 08: compile-time error |
| 32 class C16 = S1 with M1, M2; // //# 09: compile-time error | 28 class C16 = S1 with M1, M2; // //# 09: compile-time error |
| 33 class C17 = S1 with M2, M1; // //# 10: compile-time error | 29 class C17 = S1 with M2, M1; // //# 10: compile-time error |
| 34 | 30 |
| 35 class C20 = S2 with M0; | 31 class C20 = S2 with M0; |
| 36 class C21 = S2 with M1; | 32 class C21 = S2 with M1; |
| 37 class C22 = S2 with M2; // //# 11: compile-time error | 33 class C22 = S2 with M2; // //# 11: compile-time error |
| 38 class C23 = S2 with M0, M1; | 34 class C23 = S2 with M0, M1; |
| 39 class C24 = S2 with M0, M2; // //# 12: compile-time error | 35 class C24 = S2 with M0, M2; // //# 12: compile-time error |
| 40 class C25 = S2 with M2, M0; // //# 13: compile-time error | 36 class C25 = S2 with M2, M0; // //# 13: compile-time error |
| 41 class C26 = S2 with M1, M2; // //# 14: compile-time error | 37 class C26 = S2 with M1, M2; // //# 14: compile-time error |
| 42 class C27 = S2 with M2, M1; // //# 15: compile-time error | 38 class C27 = S2 with M2, M1; // //# 15: compile-time error |
| 43 | 39 |
| 44 class D00 extends S0 with M0 {} | 40 class D00 extends S0 with M0 { } |
| 45 | 41 class D01 extends S0 with M1 { } |
| 46 class D01 extends S0 with M1 {} | |
| 47 | |
| 48 class D02 extends S0 with M2 { } // //# 16: compile-time error | 42 class D02 extends S0 with M2 { } // //# 16: compile-time error |
| 49 class D03 extends S0 with M0, M1 {} | 43 class D03 extends S0 with M0, M1 { } |
| 50 class D04 extends S0 with M0, M2 { } // //# 17: compile-time error | 44 class D04 extends S0 with M0, M2 { } // //# 17: compile-time error |
| 51 class D05 extends S0 with M2, M0 { } // //# 18: compile-time error | 45 class D05 extends S0 with M2, M0 { } // //# 18: compile-time error |
| 52 class D06 extends S0 with M1, M2 { } // //# 19: compile-time error | 46 class D06 extends S0 with M1, M2 { } // //# 19: compile-time error |
| 53 class D07 extends S0 with M2, M1 { } // //# 20: compile-time error | 47 class D07 extends S0 with M2, M1 { } // //# 20: compile-time error |
| 54 | 48 |
| 55 class D10 extends S1 with M0 {} | 49 class D10 extends S1 with M0 { } |
| 56 | 50 class D11 extends S1 with M1 { } |
| 57 class D11 extends S1 with M1 {} | |
| 58 | |
| 59 class D12 extends S1 with M2 { } // //# 21: compile-time error | 51 class D12 extends S1 with M2 { } // //# 21: compile-time error |
| 60 class D13 extends S1 with M0, M1 {} | 52 class D13 extends S1 with M0, M1 { } |
| 61 class D14 extends S1 with M0, M2 { } // //# 22: compile-time error | 53 class D14 extends S1 with M0, M2 { } // //# 22: compile-time error |
| 62 class D15 extends S1 with M2, M0 { } // //# 23: compile-time error | 54 class D15 extends S1 with M2, M0 { } // //# 23: compile-time error |
| 63 class D16 extends S1 with M1, M2 { } // //# 24: compile-time error | 55 class D16 extends S1 with M1, M2 { } // //# 24: compile-time error |
| 64 class D17 extends S1 with M2, M1 { } // //# 25: compile-time error | 56 class D17 extends S1 with M2, M1 { } // //# 25: compile-time error |
| 65 | 57 |
| 66 class D20 extends S2 with M0 {} | 58 class D20 extends S2 with M0 { } |
| 67 | 59 class D21 extends S2 with M1 { } |
| 68 class D21 extends S2 with M1 {} | |
| 69 | |
| 70 class D22 extends S2 with M2 { } // //# 26: compile-time error | 60 class D22 extends S2 with M2 { } // //# 26: compile-time error |
| 71 class D23 extends S2 with M0, M1 {} | 61 class D23 extends S2 with M0, M1 { } |
| 72 class D24 extends S2 with M0, M2 { } // //# 27: compile-time error | 62 class D24 extends S2 with M0, M2 { } // //# 27: compile-time error |
| 73 class D25 extends S2 with M2, M0 { } // //# 28: compile-time error | 63 class D25 extends S2 with M2, M0 { } // //# 28: compile-time error |
| 74 class D26 extends S2 with M1, M2 { } // //# 29: compile-time error | 64 class D26 extends S2 with M1, M2 { } // //# 29: compile-time error |
| 75 class D27 extends S2 with M2, M1 { } // //# 30: compile-time error | 65 class D27 extends S2 with M2, M1 { } // //# 30: compile-time error |
| 76 | 66 |
| 77 main() { | 67 main() { |
| 78 new C00(); | 68 new C00(); |
| 79 new C01(); | 69 new C01(); |
| 80 new C02(); // //# 01: continued | 70 new C02(); // //# 01: continued |
| 81 new C03(); | 71 new C03(); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 112 |
| 123 new D20(); | 113 new D20(); |
| 124 new D21(); | 114 new D21(); |
| 125 new D22(); // //# 26: continued | 115 new D22(); // //# 26: continued |
| 126 new D23(); | 116 new D23(); |
| 127 new D24(); // //# 27: continued | 117 new D24(); // //# 27: continued |
| 128 new D25(); // //# 28: continued | 118 new D25(); // //# 28: continued |
| 129 new D26(); // //# 29: continued | 119 new D26(); // //# 29: continued |
| 130 new D27(); // //# 30: continued | 120 new D27(); // //# 30: continued |
| 131 } | 121 } |
| OLD | NEW |