Index: tests/lib/mirrors/type_variable_is_static_test.dart |
diff --git a/tests/language/vm/reflect_core_vm_test.dart b/tests/lib/mirrors/type_variable_is_static_test.dart |
similarity index 57% |
copy from tests/language/vm/reflect_core_vm_test.dart |
copy to tests/lib/mirrors/type_variable_is_static_test.dart |
index 2474b216f7bf0b641535f0b18af4573eb9c7e723..14209da99c91e4ff3d2c8c723695c131f758997d 100644 |
--- a/tests/language/vm/reflect_core_vm_test.dart |
+++ b/tests/lib/mirrors/type_variable_is_static_test.dart |
@@ -2,14 +2,16 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-// Test reflection of private functions in core classes. |
+library test.type_variable_owner; |
-import "package:expect/expect.dart"; |
import "dart:mirrors"; |
+import "package:expect/expect.dart"; |
+ |
+class C<T> {} |
+typedef bool Predicate<T>(T t); |
+ |
main() { |
- var s = "string"; |
- var im = reflect(s); |
- Expect.throws(() => im.invoke(const Symbol("_setAt"), [0, 65]), (e) => e is NoSuchMethodError); |
+ Expect.isFalse(reflectType(C).typeVariables.single.isStatic); |
+ Expect.isFalse(reflectType(Predicate).typeVariables.single.isStatic); |
} |
- |