Index: tests/language/closure_type_test.dart |
diff --git a/tests/language/closure_type_test.dart b/tests/language/closure_type_test.dart |
index 499e75b942b66a1cd7465ccb0e2182a75db0f1bb..3438d201e922cfc61e484637c0d1c0ab0cc4b3ae 100644 |
--- a/tests/language/closure_type_test.dart |
+++ b/tests/language/closure_type_test.dart |
@@ -4,6 +4,13 @@ |
// Dart test for a closure result type test that cannot be eliminated at compile |
// time. |
+#library('closure_type_test'); |
+#import('dart:math', prefix: 'math'); |
+ |
+class Math { |
+ static int sqrt(x) => math.sqrt(x); |
+} |
+ |
isCheckedMode() { |
try { |
var i = 1; |
@@ -35,4 +42,4 @@ void test(int func(int value), int value) { |
root(x) => Math.sqrt(x); |
-main() => test(root, 4); |
+main() => test(root, 4); |