| 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 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |