| 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 5a6c3c0967501d0ca89f7de77f49c23a39a0b290..30c16e5f536c469f3ee3ca3ae7f4ac0ba8b42e98 100644
|
| --- a/pkg/analysis_server/test/services/correction/fix_test.dart
|
| +++ b/pkg/analysis_server/test/services/correction/fix_test.dart
|
| @@ -389,6 +389,27 @@ class Test {
|
| _assertLinkedGroup(change.linkedEditGroups[0], ['Test v =', 'Test {']);
|
| }
|
|
|
| + void test_createClass_innerLocalFunction() {
|
| + resolveTestUnit('''
|
| +f() {
|
| + g() {
|
| + Test v = null;
|
| + }
|
| +}
|
| +''');
|
| + assertHasFix(DartFixKind.CREATE_CLASS, '''
|
| +f() {
|
| + g() {
|
| + Test v = null;
|
| + }
|
| +}
|
| +
|
| +class Test {
|
| +}
|
| +''');
|
| + _assertLinkedGroup(change.linkedEditGroups[0], ['Test v =', 'Test {']);
|
| + }
|
| +
|
| void test_createConstructor_forFinalFields() {
|
| errorFilter = (AnalysisError error) {
|
| return error.message.contains("'a'");
|
|
|