| 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 import "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
| 6 | 6 |
| 7 class M1 { foo() => 42; } | 7 class M1 { |
| 8 foo() => 42; |
| 9 } |
| 10 |
| 8 class M2 = Object with M1; | 11 class M2 = Object with M1; |
| 9 | 12 |
| 10 class S { } | 13 class S {} |
| 14 |
| 11 class C = S with M2; | 15 class C = S with M2; |
| 12 | 16 |
| 13 main() { | 17 main() { |
| 14 var c = new C(); | 18 var c = new C(); |
| 15 Expect.isTrue(c is S); | 19 Expect.isTrue(c is S); |
| 16 Expect.isTrue(c is M1); | 20 Expect.isTrue(c is M1); |
| 17 Expect.isTrue(c is M2); | 21 Expect.isTrue(c is M2); |
| 18 Expect.isTrue(c is C); | 22 Expect.isTrue(c is C); |
| 19 Expect.equals(42, c.foo()); | 23 Expect.equals(42, c.foo()); |
| 20 } | 24 } |
| OLD | NEW |