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

Unified Diff: tests/compiler/dart2js_extra/27199_test.dart

Issue 2293163002: Fix dart2js_extra/27199_test.dart (Closed)
Patch Set: Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/27199_test.dart
diff --git a/tests/compiler/dart2js_extra/27199_test.dart b/tests/compiler/dart2js_extra/27199_test.dart
index 73182cce9dece5cddd6f50eb53b6bb991ff169f2..440924773290642a5709c12bd90469c7f4b61a9a 100644
--- a/tests/compiler/dart2js_extra/27199_test.dart
+++ b/tests/compiler/dart2js_extra/27199_test.dart
@@ -7,15 +7,21 @@
// Typedefs must be unaliased at some point before codegen to have the correct
// number of references. The unaliased type of ItemListFilter<T> has two
// references to T: (Iterable<T>) -> Iterable<T>.
+
+import 'package:expect/expect.dart';
+
typedef Iterable<T> ItemListFilter<T>(Iterable<T> items);
class C<T> {
Map<String, ItemListFilter<T>> f = {};
}
+@NoInline() @AssumeDynamic()
+confuse(x) => x;
+
main() {
var c = new C();
var a = 12;
- if (new DateTime.now().millisecondsSinceEpoch < 42) a = {};
+ if (confuse(true)) a = {};
c.f = a;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698