| Index: tests/language/initializing_formal_type_test.dart
|
| diff --git a/tests/language/initializing_formal_type_test.dart b/tests/language/initializing_formal_type_test.dart
|
| index 7544f9d7a28690bdaf3bd18e244432d4ddfbe92a..af4444481f44c8070642c7f1356d29ae3bcb7b3e 100644
|
| --- a/tests/language/initializing_formal_type_test.dart
|
| +++ b/tests/language/initializing_formal_type_test.dart
|
| @@ -8,9 +8,14 @@
|
| import "package:expect/expect.dart";
|
|
|
| class A {
|
| - int x;
|
| - String y;
|
| - A(this.x) : y = x { y = x; }
|
| + num x;
|
| + double y;
|
| + // Finding the type of an initializing formal: should cause a warning
|
| + // in the initializer but not the body, because the former has type
|
| + // `int` and the latter has type `num`.
|
| + A(int this.x) : y = x {
|
| + y = x;
|
| + }
|
| }
|
|
|
| main() {
|
|
|