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"; |
| 6 |
5 class S { } | 7 class S { } |
6 class M1 { } | 8 class M1 { } |
7 class M2 { } | 9 class M2 { } |
8 class M3 { } | 10 class M3 { } |
9 | 11 |
10 typedef C = S with M1, M2, M3; | 12 typedef C = S with M1, M2, M3; |
11 class D extends S with M1, M2, M3 { } | 13 class D extends S with M1, M2, M3 { } |
12 | 14 |
13 class S_M1 { } | 15 class S_M1 { } |
14 class S_M1_M2 { } | 16 class S_M1_M2 { } |
(...skipping 20 matching lines...) Expand all Loading... |
35 Expect.isTrue(sm is S_M1); | 37 Expect.isTrue(sm is S_M1); |
36 Expect.isFalse(sm is S_M1_M2); | 38 Expect.isFalse(sm is S_M1_M2); |
37 | 39 |
38 var smm = new S_M1_M2(); | 40 var smm = new S_M1_M2(); |
39 Expect.isFalse(smm is C); | 41 Expect.isFalse(smm is C); |
40 Expect.isFalse(smm is D); | 42 Expect.isFalse(smm is D); |
41 Expect.isFalse(smm is S); | 43 Expect.isFalse(smm is S); |
42 Expect.isFalse(smm is S_M1); | 44 Expect.isFalse(smm is S_M1); |
43 Expect.isTrue(smm is S_M1_M2); | 45 Expect.isTrue(smm is S_M1_M2); |
44 } | 46 } |
OLD | NEW |