| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 // SharedOptions=--supermixin | |
| 5 | 4 |
| 6 import "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
| 7 | 6 |
| 8 class B { | 7 class B { |
| 9 // 'super' resolves to Object, and in some tests, multiple points in the | 8 // 'super' resolves to Object, and in some tests, multiple points in the |
| 10 // inheritance chain. | 9 // inheritance chain. |
| 11 toString() => 'B(' + super.toString() + ')'; | 10 toString() => 'B(' + super.toString() + ')'; |
| 12 } | 11 } |
| 13 | 12 |
| 14 class R { | 13 class R { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 34 Expect.equals(expected, object.toString()); | 33 Expect.equals(expected, object.toString()); |
| 35 } | 34 } |
| 36 | 35 |
| 37 check(new B(), "B(Instance of 'B')"); | 36 check(new B(), "B(Instance of 'B')"); |
| 38 check(new R(), "R[Instance of 'R']"); | 37 check(new R(), "R[Instance of 'R']"); |
| 39 check(new D(), "D<B(R[Instance of 'D'])>"); | 38 check(new D(), "D<B(R[Instance of 'D'])>"); |
| 40 check(new E(), "E{B(D<B(R[Instance of 'E'])>)}"); | 39 check(new E(), "E{B(D<B(R[Instance of 'E'])>)}"); |
| 41 check(new F(), "B(B(R[Instance of 'F']))"); | 40 check(new F(), "B(B(R[Instance of 'F']))"); |
| 42 check(new G(), "G{B(B(B(R[Instance of 'G'])))}"); | 41 check(new G(), "G{B(B(B(R[Instance of 'G'])))}"); |
| 43 } | 42 } |
| OLD | NEW |