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 abstract class I0 { | 5 abstract class I0 { |
8 foo(); | 6 foo(); |
9 } | 7 } |
10 | 8 |
11 abstract class I1 { | 9 abstract class I1 { |
12 bar(); | 10 bar(); |
13 } | 11 } |
14 | 12 |
15 abstract class I2 implements I0, I1 { | 13 abstract class I2 implements I0, I1 { |
16 } | 14 } |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 Expect.isFalse(c1 is I2); | 67 Expect.isFalse(c1 is I2); |
70 | 68 |
71 var c5 = new C5(); | 69 var c5 = new C5(); |
72 Expect.equals(42, c5.foo()); | 70 Expect.equals(42, c5.foo()); |
73 Expect.equals(87, c5.bar()); | 71 Expect.equals(87, c5.bar()); |
74 Expect.isTrue(c5 is M); | 72 Expect.isTrue(c5 is M); |
75 Expect.isTrue(c5 is I0); | 73 Expect.isTrue(c5 is I0); |
76 Expect.isTrue(c5 is I1); | 74 Expect.isTrue(c5 is I1); |
77 Expect.isTrue(c5 is I2); | 75 Expect.isTrue(c5 is I2); |
78 } | 76 } |
OLD | NEW |