Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(497)

Unified Diff: tests/language/closure_type_test.dart

Issue 10829459: Deprecate Math object in corelib in favor of dart:math library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/language/arithmetic_test.dart ('k') | tests/language/intrinsified_methods_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « tests/language/arithmetic_test.dart ('k') | tests/language/intrinsified_methods_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698