| 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 foo() => "S-foo"; | 6 foo() => "S-foo"; |
| 7 baz() => "S-baz"; | 7 baz() => "S-baz"; |
| 8 } | 8 } |
| 9 | 9 |
| 10 class M1 { | 10 class M1 { |
| 11 bar() => "M1-bar"; | 11 static m1bar() => "M1-bar"; |
| 12 bar() => m1bar(); |
| 12 } | 13 } |
| 13 | 14 |
| 14 class M2 { | 15 class M2 { |
| 15 bar() => "M2-bar"; | 16 bar() => "M2-bar"; |
| 16 baz() => "M2-baz"; | 17 baz() => "M2-baz"; |
| 17 fez() => "M2-fez"; | 18 fez() => "M2-fez"; |
| 18 } | 19 } |
| 19 | 20 |
| 20 class C extends S with M1 { } | 21 class C extends S with M1 { } |
| 21 class D extends S with M1, M2 { } | 22 class D extends S with M1, M2 { } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 43 Expect.equals("M1-bar", e.bar()); | 44 Expect.equals("M1-bar", e.bar()); |
| 44 Expect.equals("M2-baz", e.baz()); | 45 Expect.equals("M2-baz", e.baz()); |
| 45 Expect.equals("M2-fez", e.fez()); | 46 Expect.equals("M2-fez", e.fez()); |
| 46 | 47 |
| 47 var f = new F(); | 48 var f = new F(); |
| 48 Expect.equals("S-foo", f.foo()); | 49 Expect.equals("S-foo", f.foo()); |
| 49 Expect.equals("M1-bar", f.bar()); | 50 Expect.equals("M1-bar", f.bar()); |
| 50 Expect.equals("M2-baz", f.baz()); | 51 Expect.equals("M2-baz", f.baz()); |
| 51 Expect.equals("F-fez", f.fez()); | 52 Expect.equals("F-fez", f.fez()); |
| 52 } | 53 } |
| OLD | NEW |