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

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

Issue 2976973002: dart2ks-kernel: constant types and constant lists with type parameters (Closed)
Patch Set: 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/js_backend/namer.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 eab5618d5a4c0da981234b3bda32eaf5dbd590f9..c486f723861189ebbf1caf5fa36f378847fbf903 100644
--- a/tests/compiler/dart2js/kernel/compile_from_dill_test_helper.dart
+++ b/tests/compiler/dart2js/kernel/compile_from_dill_test_helper.dart
@@ -175,6 +175,24 @@ class W<Z> {}
main() {
print(new C<String>().a);
}
+'''
+ }, expectIdenticalOutput: true),
+ const Test(const {
+ 'main.dart': '''
+class C<X> {
+ const C();
+}
+foo(x) {
+ print(x.runtimeType);
+}
+main() {
+ foo(<int>[]);
+ foo(const <int>[]);
+ foo(new C<String>());
+ foo(const C<String>());
+ foo(<Type>[C, String]);
+ foo(const <Type>[C, String]);
+}
'''
}, expectIdenticalOutput: true),
];
« no previous file with comments | « pkg/compiler/lib/src/js_backend/namer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698