| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 class M { } |
| 6 class M0 extends Object with M0 { } /// 01: compile-time error |
| 7 typedef M1 = Object with M1; /// 02: compile-time error |
| 8 |
| 9 typedef M2 = Object with M3; /// 03: compile-time error |
| 10 typedef M3 = Object with M2; /// 03: continued |
| 11 |
| 12 typedef M4 = Object with M5; /// 04: compile-time error |
| 13 typedef M5 = Object with M6; /// 04: continued |
| 14 typedef M6 = Object with M4; /// 04: continued |
| 15 |
| 16 class M7 extends Object with M8 { } /// 05: compile-time error |
| 17 class M8 extends Object with M7 { } /// 05: continued |
| 18 |
| 19 main() { |
| 20 new M0(); /// 01: continued |
| 21 |
| 22 new M1(); /// 02: continued |
| 23 |
| 24 new M2(); /// 03: continued |
| 25 new M3(); /// 03: continued |
| 26 |
| 27 new M4(); /// 04: continued |
| 28 new M5(); /// 04: continued |
| 29 new M6(); /// 04: continued |
| 30 |
| 31 new M7(); /// 05: continued |
| 32 new M8(); /// 05: continued |
| 33 } |
| OLD | NEW |