Chromium Code Reviews| 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 | |
|
ahe
2013/01/23 12:21:52
Move "with M0" to its own line.
kasperl
2013/01/23 12:29:22
Not sure it's really that much better in this case
| |
| 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 | |
|
ahe
2013/01/23 12:21:52
Ditto.
| |
| 17 class M8 extends Object with M7 { } /// 05: continued | |
|
ahe
2013/01/23 12:21:52
Ditto.
| |
| 18 | |
| 19 typedef M9 = Object with M91; /// 06: compile-time error | |
| 20 typedef M91 = Object with M92; /// 06: continued | |
| 21 typedef M92 = Object with M91; /// 06: continued | |
| 22 | |
| 23 main() { | |
| 24 new M0(); /// 01: continued | |
|
ahe
2013/01/23 12:21:52
Remove /// 01: continued
| |
| 25 | |
| 26 new M1(); /// 02: continued | |
| 27 | |
| 28 new M2(); /// 03: continued | |
| 29 new M3(); /// 03: continued | |
| 30 | |
| 31 new M4(); /// 04: continued | |
| 32 new M5(); /// 04: continued | |
| 33 new M6(); /// 04: continued | |
| 34 | |
| 35 new M7(); /// 05: continued | |
|
ahe
2013/01/23 12:21:52
Ditto.
| |
| 36 new M8(); /// 05: continued | |
|
ahe
2013/01/23 12:21:52
Ditto.
| |
| 37 | |
| 38 new M9(); /// 06: continued | |
| 39 } | |
| OLD | NEW |