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

Unified Diff: tests/language/const_map2_test.dart

Issue 1518553002: Use annotations on confuse() functions (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years 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 | « no previous file | tests/language/const_map_test.dart » ('j') | tests/language/range_analysis3_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/const_map2_test.dart
diff --git a/tests/language/const_map2_test.dart b/tests/language/const_map2_test.dart
index 6b599f70d1585a34903a5c6bf1f136c9197123f4..d32ca5b13ccbc0debbc3b5a678ce4b27f89a76bf 100644
--- a/tests/language/const_map2_test.dart
+++ b/tests/language/const_map2_test.dart
@@ -14,10 +14,8 @@ class B implements A {
operator ==(o) => true; /// 00: compile-time error
}
-confuse(x) {
- if (new DateTime.now() == 42) return confuse(2);
- return x;
-}
+@NoInline() @AssumeDynamic()
floitsch 2015/12/09 20:40:14 I would put them on separate lines, but I really d
+confuse(x) => x;
main() {
// It is a compile-time error if the key type overrides operator ==.
« no previous file with comments | « no previous file | tests/language/const_map_test.dart » ('j') | tests/language/range_analysis3_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698