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

Unified Diff: tests/language/generic_instanceof4_test.dart

Issue 1411243003: Upgrade some tests to use annotations instead of 'clever' confuse() function (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
Index: tests/language/generic_instanceof4_test.dart
diff --git a/tests/language/generic_instanceof4_test.dart b/tests/language/generic_instanceof4_test.dart
index 15896cb598551432d7733e177b4fbde3ecb3387b..95ff9bbb29567dcb22d47b54a295e7e5f1a2323a 100644
--- a/tests/language/generic_instanceof4_test.dart
+++ b/tests/language/generic_instanceof4_test.dart
@@ -6,9 +6,8 @@
import "package:expect/expect.dart";
class A<T> {
+ @NoInline()
foo(x) {
- // Don't inline.
- if (new DateTime.now().millisecondsSinceEpoch == 42) return foo(x);
return x is T;
}
}
@@ -16,9 +15,8 @@ class A<T> {
class BB {}
class B<T> implements BB {
+ @NoInline()
foo() {
- // Don't inline.
- if (new DateTime.now().millisecondsSinceEpoch == 42) return foo();
return new A<T>().foo(new B());
}
}

Powered by Google App Engine
This is Rietveld 408576698