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 | |
7 class S { } | 5 class S { } |
8 class M1 { } | 6 class M1 { } |
9 class M2 { } | 7 class M2 { } |
10 | 8 |
11 typedef C = S with M1; | 9 typedef C = S with M1; |
12 typedef D = S with M1, M2; | 10 typedef D = S with M1, M2; |
13 typedef E = S with M2, M1; | 11 typedef E = S with M2, M1; |
14 class F extends E { } | 12 class F extends E { } |
15 | 13 |
16 typedef C_ = S with M1; | 14 typedef C_ = S with M1; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 Expect.isFalse(e is C_); | 68 Expect.isFalse(e is C_); |
71 Expect.isFalse(e is D_); | 69 Expect.isFalse(e is D_); |
72 Expect.isFalse(e is E_); | 70 Expect.isFalse(e is E_); |
73 Expect.isFalse(e is F_); | 71 Expect.isFalse(e is F_); |
74 | 72 |
75 Expect.isFalse(f is C_); | 73 Expect.isFalse(f is C_); |
76 Expect.isFalse(f is D_); | 74 Expect.isFalse(f is D_); |
77 Expect.isFalse(f is E_); | 75 Expect.isFalse(f is E_); |
78 Expect.isFalse(f is F_); | 76 Expect.isFalse(f is F_); |
79 } | 77 } |
OLD | NEW |