| 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 library mixin_lib_extends_method_test; | 5 library mixin_lib_extends_method_test; |
| 6 | 6 |
| 7 import "package:expect/expect.dart"; |
| 7 import "mixin_lib_extends_method_lib.dart" as L; | 8 import "mixin_lib_extends_method_lib.dart" as L; |
| 8 | 9 |
| 9 class S { | 10 class S { |
| 10 foo() => "S-foo"; | 11 foo() => "S-foo"; |
| 11 baz() => "S-baz"; | 12 baz() => "S-baz"; |
| 12 } | 13 } |
| 13 | 14 |
| 14 class C extends S with L.M1 { } | 15 class C extends S with L.M1 { } |
| 15 class D extends S with L.M1, L.M2 { } | 16 class D extends S with L.M1, L.M2 { } |
| 16 class E extends S with L.M2, L.M1 { } | 17 class E extends S with L.M2, L.M1 { } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 41 Expect.equals("M2-fez", e.fez()); | 42 Expect.equals("M2-fez", e.fez()); |
| 42 Expect.equals("sugus", e.clo("su")("gus")); | 43 Expect.equals("sugus", e.clo("su")("gus")); |
| 43 | 44 |
| 44 var f = new F(); | 45 var f = new F(); |
| 45 Expect.equals("S-foo", f.foo()); | 46 Expect.equals("S-foo", f.foo()); |
| 46 Expect.equals("M1-bar", f.bar()); | 47 Expect.equals("M1-bar", f.bar()); |
| 47 Expect.equals("M2-baz", f.baz()); | 48 Expect.equals("M2-baz", f.baz()); |
| 48 Expect.equals("F-fez", f.fez()); | 49 Expect.equals("F-fez", f.fez()); |
| 49 Expect.equals("sugus", f.clo("su")("gus")); | 50 Expect.equals("sugus", f.clo("su")("gus")); |
| 50 } | 51 } |
| OLD | NEW |