| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 A { | 7 class A { |
| 6 } | 8 } |
| 7 | 9 |
| 8 class B extends A { | 10 class B extends A { |
| 9 } | 11 } |
| 10 | 12 |
| 11 class C extends B { | 13 class C extends B { |
| 12 } | 14 } |
| 13 | 15 |
| 14 class D implements C { | 16 class D implements C { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 36 Expect.isTrue(c is B); | 38 Expect.isTrue(c is B); |
| 37 Expect.isTrue(c is C); | 39 Expect.isTrue(c is C); |
| 38 Expect.isFalse(c is D); | 40 Expect.isFalse(c is D); |
| 39 | 41 |
| 40 var d = things[inscrutable(3)]; | 42 var d = things[inscrutable(3)]; |
| 41 Expect.isTrue(d is A); | 43 Expect.isTrue(d is A); |
| 42 Expect.isTrue(d is B); | 44 Expect.isTrue(d is B); |
| 43 Expect.isTrue(d is C); | 45 Expect.isTrue(d is C); |
| 44 Expect.isTrue(d is D); | 46 Expect.isTrue(d is D); |
| 45 } | 47 } |
| OLD | NEW |