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

Unified Diff: tests/compiler/dart2js/js_backend_cps_ir_runtime_types_test.dart

Issue 1011403003: cps-ir: Set runtime type information for new objects that require it. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add parameter for each type variable to the JS-factory. Created 5 years, 9 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/compiler/dart2js/js_backend_cps_ir_runtime_types_test.dart
diff --git a/tests/compiler/dart2js/js_backend_cps_ir_runtime_types_test.dart b/tests/compiler/dart2js/js_backend_cps_ir_runtime_types_test.dart
index 86f8260867b999bb00e7cb50fcdcf5102d4424ec..996579c2edcc38f3472a50dc35a17e913815689e 100644
--- a/tests/compiler/dart2js/js_backend_cps_ir_runtime_types_test.dart
+++ b/tests/compiler/dart2js/js_backend_cps_ir_runtime_types_test.dart
@@ -43,6 +43,19 @@ main() {
function() {
return P.print($createType($typeToString($getSubstitutedTypeArgument(this, "\$asC", 1))));
}"""),
+ const TestEntry.forMethod('function(C#foo)', r"""
+class C<T> {
+ foo() => new D<C<T>>();
+}
+class D<T> {
+ bar() => T;
+}
+main() {
+ print(new C<int>().foo().bar());
+}""", r"""
+function() {
+ return V.D$([[V.C, H.getTypeArgumentByIndex(this, 0)]]);
+}"""),
];
void main() {

Powered by Google App Engine
This is Rietveld 408576698