| Index: pkg/analyzer/test/generated/compile_time_error_code_test.dart
|
| diff --git a/pkg/analyzer/test/generated/compile_time_error_code_test.dart b/pkg/analyzer/test/generated/compile_time_error_code_test.dart
|
| index 5bd95e5bb264d7692d3ae7daaa746aa539cf67a8..f3e477a1a06c79bb543cb8d003434ec1a73491cc 100644
|
| --- a/pkg/analyzer/test/generated/compile_time_error_code_test.dart
|
| +++ b/pkg/analyzer/test/generated/compile_time_error_code_test.dart
|
| @@ -2244,6 +2244,18 @@ class A {
|
| verify([source]);
|
| }
|
|
|
| + void test_fieldInitializerOutsideConstructor_inFunctionTypeParameter() {
|
| + Source source = addSource(r'''
|
| +class A {
|
| + int x;
|
| + A(int p(this.x));
|
| +}''');
|
| + computeLibrarySourceErrors(source);
|
| + assertErrors(
|
| + source, [CompileTimeErrorCode.FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR]);
|
| + verify([source]);
|
| + }
|
| +
|
| void test_fieldInitializerRedirectingConstructor_afterRedirection() {
|
| Source source = addSource(r'''
|
| class A {
|
|
|