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

Unified Diff: pkg/kernel/testcases/interpreter/object_initializers_test.dart

Issue 2880343002: Add support for execution of constructor body (Closed)
Patch Set: Refactor Created 3 years, 7 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/interpreter/object_initializers_test.dart
diff --git a/pkg/kernel/testcases/interpreter/object_initializers_test.dart b/pkg/kernel/testcases/interpreter/object_initializers_test.dart
index aa2a70e6af17a8eb95b7a833d72bc533c9c36f7b..725df4b5941be42dc625d7b4e79bf13d61cfd953 100644
--- a/pkg/kernel/testcases/interpreter/object_initializers_test.dart
+++ b/pkg/kernel/testcases/interpreter/object_initializers_test.dart
@@ -30,9 +30,7 @@ class B {
String foo2 = fieldInitializer(1, 'foo2');
String foo3 = fieldInitializer(1, 'foo3');
- // TODO: uncomment when support for *this* in initializer list is added.
- // B(this.foo1, this.foo2) : foo3 = foo2;
- B(this.foo1, this.foo2) : foo3 = fieldInitializer(2, 'foo3');
+ B(this.foo1, this.foo2) : foo3 = foo2;
}
String fieldInitializer(int f, String s) {

Powered by Google App Engine
This is Rietveld 408576698