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

Unified Diff: pkg/kernel/testcases/closures/closure_in_constructor.dart.expect

Issue 2991853002: Fix duplicate context creation when closures appear in initializers. (Closed)
Patch Set: Review comments. Created 3 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
Index: pkg/kernel/testcases/closures/closure_in_constructor.dart.expect
diff --git a/pkg/kernel/testcases/closures/closure_in_constructor.dart.expect b/pkg/kernel/testcases/closures/closure_in_constructor.dart.expect
index 2e3a64712f01c3a6e34ecff2aec190e4a101a4b2..6ba777307b04c9b171a18fae99ee9364e3545fd2 100644
--- a/pkg/kernel/testcases/closures/closure_in_constructor.dart.expect
+++ b/pkg/kernel/testcases/closures/closure_in_constructor.dart.expect
@@ -11,7 +11,7 @@ class C1 extends core::Object {
class C2 extends core::Object {
field dynamic x = null;
constructor •(dynamic y) → void
- : final Vector #context = MakeVector(2), dynamic #t2 = #context[1] = y, super core::Object::•() {
+ : super core::Object::•() {
final Vector #context = MakeVector(2);
#context[1] = y;
this.x = MakeClosure<() → dynamic>(self::closure#C2#function#function, #context);
« no previous file with comments | « pkg/kernel/lib/transformations/closure/info.dart ('k') | pkg/kernel/testcases/closures/closure_in_initializer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698