| Index: pkg/analysis_server/test/services/correction/fix_test.dart
|
| diff --git a/pkg/analysis_server/test/services/correction/fix_test.dart b/pkg/analysis_server/test/services/correction/fix_test.dart
|
| index 2def8d4569a91c3f3c473f2d7bd605b0684c1d73..84102080a647f0c5d2a93824c02e7869d1f32b8b 100644
|
| --- a/pkg/analysis_server/test/services/correction/fix_test.dart
|
| +++ b/pkg/analysis_server/test/services/correction/fix_test.dart
|
| @@ -1957,6 +1957,40 @@ main(C c) {
|
| ''');
|
| }
|
|
|
| + test_createField_invalidInitializer_withoutType() async {
|
| + await resolveTestUnit('''
|
| +class C {
|
| + C(this.text);
|
| +}
|
| +''');
|
| + await assertHasFix(
|
| + DartFixKind.CREATE_FIELD,
|
| + '''
|
| +class C {
|
| + var text;
|
| +
|
| + C(this.text);
|
| +}
|
| +''');
|
| + }
|
| +
|
| + test_createField_invalidInitializer_withType() async {
|
| + await resolveTestUnit('''
|
| +class C {
|
| + C(String this.text);
|
| +}
|
| +''');
|
| + await assertHasFix(
|
| + DartFixKind.CREATE_FIELD,
|
| + '''
|
| +class C {
|
| + String text;
|
| +
|
| + C(String this.text);
|
| +}
|
| +''');
|
| + }
|
| +
|
| test_createField_setter_generic_BAD() async {
|
| await resolveTestUnit('''
|
| class A {
|
|
|