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 f19bf116fc042cbe7a54c6d232a2dcbe6effdd52..352066a76f9fcbca8b01d72b4091e24a81111e67 100644 |
--- a/tests/language_strong/super_from_constructor_test.dart |
+++ b/tests/language_strong/super_from_constructor_test.dart |
@@ -6,9 +6,17 @@ import "package:expect/expect.dart"; |
final results = []; |
+int invoke(int f()) => f(); |
+ |
class Base { |
var f; |
+ var z; |
+ |
m(x) => results.add(x); |
+ |
+ int g() { |
+ return 42; |
+ } |
} |
class C extends Base { |
@@ -17,6 +25,11 @@ class C extends Base { |
C(this._iter) { |
_iter.map((x) => super.m(x)).toList(); |
super.f = _iter; |
+ z = invoke(super.g); |
+ } |
+ |
+ int g() { |
+ return -1; |
} |
} |
@@ -24,4 +37,5 @@ main() { |
var c = new C([1, 2, 3]); |
Expect.listEquals(results, [1, 2, 3]); |
Expect.listEquals(c.f, [1, 2, 3]); |
+ Expect.equals(42, c.z); |
} |