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 // Dart test program for testing the instanceof operation. | 4 // Dart test program for testing the instanceof operation. |
5 | 5 |
| 6 import "package:expect/expect.dart"; |
| 7 |
6 abstract class I { } | 8 abstract class I { } |
7 | 9 |
8 abstract class AI implements I { } | 10 abstract class AI implements I { } |
9 | 11 |
10 class A implements AI { | 12 class A implements AI { |
11 const A(); | 13 const A(); |
12 } | 14 } |
13 | 15 |
14 class B implements I { | 16 class B implements I { |
15 const B(); | 17 const B(); |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 } | 98 } |
97 } | 99 } |
98 | 100 |
99 main() { | 101 main() { |
100 // Repeat type checks so that inlined tests can be tested as well. | 102 // Repeat type checks so that inlined tests can be tested as well. |
101 for (int i = 0; i < 5; i++) { | 103 for (int i = 0; i < 5; i++) { |
102 InstanceofTest.testMain(); | 104 InstanceofTest.testMain(); |
103 } | 105 } |
104 } | 106 } |
105 | 107 |
OLD | NEW |