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

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

Issue 909483003: cps2js: Bugfix in named parameters in call to superconstructor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Test case Created 5 years, 10 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/cps_ir/cps_ir_builder_visitor.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/js_backend_cps_ir_constructor_test.dart
diff --git a/tests/compiler/dart2js/js_backend_cps_ir_constructor_test.dart b/tests/compiler/dart2js/js_backend_cps_ir_constructor_test.dart
index b807c29af41218c3047679df806bf16ac4edcbdb..abf40d0e7722838cbd836c773d1c24aa07a57b57 100644
--- a/tests/compiler/dart2js/js_backend_cps_ir_constructor_test.dart
+++ b/tests/compiler/dart2js/js_backend_cps_ir_constructor_test.dart
@@ -138,6 +138,37 @@ function() {
v4 = V.foo("x2");
return new V.Sub(v0, v1, V.foo("y3"), v2, v4, v3);
}"""),
+
+
+ const TestEntry.forMethod('generative_constructor(Foo#)', """
+class Bar {
+ Bar(x, {y, z: 'z', w: '_', q}) {
+ print(x);
+ print(y);
+ print(z);
+ print(w);
+ print(q);
+ }
+}
+class Foo extends Bar {
+ Foo() : super('x', y: 'y', w: 'w');
+}
+main() {
+ new Foo();
+}
+""",
+r"""
+function() {
+ var x, y, w, z, q, v0;
+ x = "x";
+ y = "y";
+ w = "w";
+ z = "z";
+ q = null;
+ v0 = new V.Foo();
+ v0.Bar$5$q$w$y$z(x, q, w, y, z);
asgerf 2015/02/10 10:21:17 This is the change done by the fix: v0.Bar$5$q$w$
+ return v0;
+}"""),
];
void main() {
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_builder_visitor.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698