| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 test.type_variable_owner; | 5 library test.type_variable_owner; |
| 6 | 6 |
| 7 @MirrorsUsed(targets: "test.type_variable_owner") | 7 @MirrorsUsed(targets: "test.type_variable_owner") |
| 8 import "dart:mirrors"; | 8 import "dart:mirrors"; |
| 9 | 9 |
| 10 import "package:expect/expect.dart"; | 10 import "package:expect/expect.dart"; |
| 11 | 11 |
| 12 class C<T> {} | 12 class C<T> {} |
| 13 |
| 13 typedef bool Predicate<T>(T t); | 14 typedef bool Predicate<T>(T t); |
| 14 | 15 |
| 15 main() { | 16 main() { |
| 16 Expect.isFalse(reflectType(C).typeVariables.single.isStatic); | 17 Expect.isFalse(reflectType(C).typeVariables.single.isStatic); |
| 17 Expect.isFalse(reflectType(Predicate).typeVariables.single.isStatic); | 18 Expect.isFalse(reflectType(Predicate).typeVariables.single.isStatic); |
| 18 } | 19 } |
| OLD | NEW |