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

Unified Diff: tests/language_strong/super_from_constructor_test.dart

Issue 2940323003: fix super setters when super is not allowed (Closed)
Patch Set: Created 3 years, 6 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/dev_compiler/lib/src/compiler/js_interop.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_strong/super_from_constructor_test.dart
diff --git a/tests/language_strong/super_from_constructor_test.dart b/tests/language_strong/super_from_constructor_test.dart
index 2025aa983a0e5bff4a0539a081bd6736aa0143d0..f19bf116fc042cbe7a54c6d232a2dcbe6effdd52 100644
--- a/tests/language_strong/super_from_constructor_test.dart
+++ b/tests/language_strong/super_from_constructor_test.dart
@@ -7,6 +7,7 @@ import "package:expect/expect.dart";
final results = [];
class Base {
+ var f;
m(x) => results.add(x);
}
@@ -15,10 +16,12 @@ class C extends Base {
C(this._iter) {
_iter.map((x) => super.m(x)).toList();
+ super.f = _iter;
}
}
main() {
- new C([1, 2, 3]);
+ var c = new C([1, 2, 3]);
Expect.listEquals(results, [1, 2, 3]);
+ Expect.listEquals(c.f, [1, 2, 3]);
}
« no previous file with comments | « pkg/dev_compiler/lib/src/compiler/js_interop.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698