Index: tests/lib_2/mirrors/closures_test.dart |
diff --git a/tests/lib_strong/mirrors/closures_test.dart b/tests/lib_2/mirrors/closures_test.dart |
similarity index 86% |
rename from tests/lib_strong/mirrors/closures_test.dart |
rename to tests/lib_2/mirrors/closures_test.dart |
index 35e81f9805821b2bd2becc4aa986948e3379bfc0..a1e2e93de6c684c14d2f07550a2bdd3379866921 100644 |
--- a/tests/lib_strong/mirrors/closures_test.dart |
+++ b/tests/lib_2/mirrors/closures_test.dart |
@@ -8,7 +8,7 @@ import 'stringify.dart'; |
testIntercepted() { |
var instance = []; |
- var closureMirror = reflect(instance.toString); |
+ var closureMirror = reflect(instance.toString) as ClosureMirror; |
var methodMirror = closureMirror.function; |
Expect.equals(#toString, methodMirror.simpleName); |
Expect.equals('[]', closureMirror.apply([]).reflectee); |
@@ -16,7 +16,7 @@ testIntercepted() { |
testNonIntercepted() { |
var closure = new Map().containsKey; |
- var closureMirror = reflect(closure); |
+ var closureMirror = reflect(closure) as ClosureMirror; |
var methodMirror = closureMirror.function; |
Expect.equals(#containsKey, methodMirror.simpleName); |
Expect.isFalse(closureMirror.apply([7]).reflectee); |