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

Unified Diff: tests/compiler/dart2js/kernel/compile_from_dill_test_helper.dart

Issue 2981543002: Handle type variable test and typed list literal. (Closed)
Patch Set: Updated cf. comment Created 3 years, 5 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 | « pkg/compiler/lib/src/ssa/type_builder.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/kernel/compile_from_dill_test_helper.dart
diff --git a/tests/compiler/dart2js/kernel/compile_from_dill_test_helper.dart b/tests/compiler/dart2js/kernel/compile_from_dill_test_helper.dart
index 7bd194d1649c3133115446cdb8ed186057fc5a6b..bb093f480a81110062332f3142bcb090b1e32006 100644
--- a/tests/compiler/dart2js/kernel/compile_from_dill_test_helper.dart
+++ b/tests/compiler/dart2js/kernel/compile_from_dill_test_helper.dart
@@ -72,7 +72,9 @@ class SubClass extends Class {
}
}
-class Generic<T> {}
+class Generic<T> {
+ method(o) => o is T;
+}
var toplevel;
@@ -80,6 +82,7 @@ main() {
foo();
bar(true);
[];
+ <int>[];
{};
new Object();
new Class.named('');
@@ -127,6 +130,7 @@ main() {
}
x = toplevel;
x = testIs(x);
+ x = new Generic<int>().method(x);
x = testAsGeneric(x);
x = testAsFunction(x);
print(x);
« no previous file with comments | « pkg/compiler/lib/src/ssa/type_builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698