| 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 a6ec27a8ae2167ed7aeacd8073cefab6cb4c1d38..7ce9b90363356bbac3d4d16e0a5b4d05fdb2e6a0 100644
|
| --- a/pkg/analysis_server/test/services/correction/fix_test.dart
|
| +++ b/pkg/analysis_server/test/services/correction/fix_test.dart
|
| @@ -3278,6 +3278,48 @@ abstract class B extends A {
|
| ''');
|
| }
|
|
|
| + test_makeFieldNotFinal_hasType() async {
|
| + resolveTestUnit('''
|
| +class A {
|
| + final int fff = 1;
|
| + main() {
|
| + fff = 2;
|
| + }
|
| +}
|
| +''');
|
| + await assertHasFix(
|
| + DartFixKind.MAKE_FIELD_NOT_FINAL,
|
| + '''
|
| +class A {
|
| + int fff = 1;
|
| + main() {
|
| + fff = 2;
|
| + }
|
| +}
|
| +''');
|
| + }
|
| +
|
| + test_makeFieldNotFinal_noType() async {
|
| + resolveTestUnit('''
|
| +class A {
|
| + final fff = 1;
|
| + main() {
|
| + fff = 2;
|
| + }
|
| +}
|
| +''');
|
| + await assertHasFix(
|
| + DartFixKind.MAKE_FIELD_NOT_FINAL,
|
| + '''
|
| +class A {
|
| + var fff = 1;
|
| + main() {
|
| + fff = 2;
|
| + }
|
| +}
|
| +''');
|
| + }
|
| +
|
| test_noException_1() async {
|
| resolveTestUnit('''
|
| main(p) {
|
|
|