| 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 S { } | 5 class S { } |
| 6 class G<T> { } |
| 6 class M { } | 7 class M { } |
| 7 | 8 |
| 8 typedef T0 = abstract S with M; | 9 typedef T0 = abstract S with M; |
| 9 typedef T1 = final S with M; /// 01: compile-time error | 10 typedef T1 = final S with M; /// 01: compile-time error |
| 10 typedef T2 = var S with M; /// 02: compile-time error | 11 typedef T2 = var S with M; /// 02: compile-time error |
| 11 typedef T3 = const S with M; /// 03: compile-time error | 12 typedef T3 = const S with M; /// 03: compile-time error |
| 12 typedef T4 = static S with M; /// 04: compile-time error | 13 typedef T4 = static S with M; /// 04: compile-time error |
| 13 typedef T5 = external S with M; /// 05: compile-time error | 14 typedef T5 = external S with M; /// 05: compile-time error |
| 15 typedef T6 = G<int> with M; |
| 16 typedef T7 = G<Map<String,int>> with M; |
| 14 | 17 |
| 15 class C0 extends abstract S with M { } /// 06: compile-time error | 18 class C0 extends abstract S with M { } /// 06: compile-time error |
| 16 class C1 extends final S with M { } /// 07: compile-time error | 19 class C1 extends final S with M { } /// 07: compile-time error |
| 17 class C2 extends var S with M { } /// 08: compile-time error | 20 class C2 extends var S with M { } /// 08: compile-time error |
| 18 class C3 extends const S with M { } /// 09: compile-time error | 21 class C3 extends const S with M { } /// 09: compile-time error |
| 19 class C4 extends static S with M { } /// 10: compile-time error | 22 class C4 extends static S with M { } /// 10: compile-time error |
| 20 class C5 extends external S with M { } /// 11: compile-time error | 23 class C5 extends external S with M { } /// 11: compile-time error |
| 24 class C6 extends G<int> with M { } |
| 25 class C7 extends G<Map<String,int>> with M { } |
| 21 | 26 |
| 22 class D0 extends S with M | 27 class D0 extends S with M |
| 23 implements M /// 12: compile-time error | 28 implements M /// 12: compile-time error |
| 24 implements M { } | 29 implements M { } |
| 25 | 30 |
| 26 class D1 extends T0 { } | 31 class D1 extends T0 { } |
| 27 | 32 |
| 28 main() { | 33 main() { |
| 29 new T0(); /// 13: static type warning, runtime error | 34 new T0(); /// 13: static type warning, runtime error |
| 30 new T1(); /// 01: continued | 35 new T1(); /// 01: continued |
| 31 new T2(); /// 02: continued | 36 new T2(); /// 02: continued |
| 32 new T3(); /// 03: continued | 37 new T3(); /// 03: continued |
| 33 new T4(); /// 04: continued | 38 new T4(); /// 04: continued |
| 34 new T5(); /// 05: continued | 39 new T5(); /// 05: continued |
| 40 new T6(); |
| 41 new T7(); |
| 35 | 42 |
| 36 new C0(); /// 06: continued | 43 new C0(); /// 06: continued |
| 37 new C1(); /// 07: continued | 44 new C1(); /// 07: continued |
| 38 new C2(); /// 08: continued | 45 new C2(); /// 08: continued |
| 39 new C3(); /// 09: continued | 46 new C3(); /// 09: continued |
| 40 new C4(); /// 10: continued | 47 new C4(); /// 10: continued |
| 41 new C5(); /// 11: continued | 48 new C5(); /// 11: continued |
| 49 new C6(); |
| 50 new C7(); |
| 42 | 51 |
| 43 new D0(); /// 12: continued | 52 new D0(); /// 12: continued |
| 44 new D1(); | 53 new D1(); |
| 45 } | 54 } |
| OLD | NEW |