| Index: tests/language/constructor_initializer_test.dart
|
| diff --git a/tests/language/constructor_initializer_test.dart b/tests/language/constructor_initializer_test.dart
|
| index cae3ca1028c940233780b6fb845dc62a307932cb..ec3d7fb5a4a366781c41be5b8d66cb86286bb64e 100644
|
| --- a/tests/language/constructor_initializer_test.dart
|
| +++ b/tests/language/constructor_initializer_test.dart
|
| @@ -6,7 +6,9 @@ import "package:expect/expect.dart";
|
|
|
| class A {
|
| var _x, _y;
|
| - A(x, [y = 10]): _x = x++, _y = y++ {
|
| + A(x, [y = 10])
|
| + : _x = x++,
|
| + _y = y++ {
|
| // Check that value of modified constructor parameters
|
| // is remembered in the constructor body.
|
| Expect.equals(x, _x + 1);
|
| @@ -20,10 +22,13 @@ class B extends A {
|
| // The super call in the middle of the initializer list conceptually
|
| // forces two super call chains, one for initializer list and a second
|
| // one for the constructor bodies.
|
| - B(a, b): _a = a++, super(a + b++), _b = b++ {
|
| + B(a, b)
|
| + : _a = a++,
|
| + super(a + b++),
|
| + _b = b++ {
|
| Expect.equals(a, _a + 1);
|
| Expect.equals(b, _b + 1);
|
| - Expect.equals(a + (b-2), _x);
|
| + Expect.equals(a + (b - 2), _x);
|
| }
|
| }
|
|
|
|
|