| 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 3923162b3fff672bcf104b2d9fd00f03609bc69f..4ddbb782ce610483fce798180c5cca6b28f51bb0 100644
|
| --- a/pkg/analysis_server/test/services/correction/fix_test.dart
|
| +++ b/pkg/analysis_server/test/services/correction/fix_test.dart
|
| @@ -3171,6 +3171,31 @@ main() {
|
| ''');
|
| }
|
|
|
| + test_importLibraryProject_withClass_constInstanceCreation() async {
|
| + addSource(
|
| + '/lib.dart',
|
| + '''
|
| +class Test {
|
| + const Test();
|
| +}
|
| +''');
|
| + resolveTestUnit('''
|
| +main() {
|
| + const Test();
|
| +}
|
| +''');
|
| + performAllAnalysisTasks();
|
| + await assertHasFix(
|
| + DartFixKind.IMPORT_LIBRARY_PROJECT1,
|
| + '''
|
| +import 'lib.dart';
|
| +
|
| +main() {
|
| + const Test();
|
| +}
|
| +''');
|
| + }
|
| +
|
| test_importLibraryProject_withClass_hasOtherLibraryWithPrefix() async {
|
| testFile = '/project/bin/test.dart';
|
| addSource(
|
|
|