| 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 library lib; |
| 6 |
| 5 import 'package:expect/expect.dart'; | 7 import 'package:expect/expect.dart'; |
| 8 |
| 9 @MirrorsUsed(targets: "lib") |
| 6 import 'dart:mirrors'; | 10 import 'dart:mirrors'; |
| 7 | 11 |
| 8 | 12 |
| 9 class A<T> {} | 13 class A<T> {} |
| 10 class B extends A<U>{} | 14 class B extends A<U>{} |
| 11 class C extends A<C> {} | 15 class C extends A<C> {} |
| 12 class D<T> extends A<T> {} | 16 class D<T> extends A<T> {} |
| 13 class E<X,Y> extends G<H<Y>> {} | 17 class E<X,Y> extends G<H<Y>> {} |
| 14 class F<X> implements A<X> {} | 18 class F<X> implements A<X> {} |
| 15 class FF<X,Y> implements G<H<Y>> {} | 19 class FF<X,Y> implements G<H<Y>> {} |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 void testObject() { | 115 void testObject() { |
| 112 ClassMirror object = reflectClass(Object); | 116 ClassMirror object = reflectClass(Object); |
| 113 Expect.equals(null, object.superclass); | 117 Expect.equals(null, object.superclass); |
| 114 } | 118 } |
| 115 | 119 |
| 116 main() { | 120 main() { |
| 117 testOriginals(); | 121 testOriginals(); |
| 118 testInstances(); | 122 testInstances(); |
| 119 testObject(); | 123 testObject(); |
| 120 } | 124 } |
| OLD | NEW |