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 4aa6942c214cb79f239329b972fa7fd6b70c9c2c..18b6a7ad658bde8ae57e384d41420c2758c5bd5e 100644 |
--- a/pkg/analysis_server/test/services/correction/fix_test.dart |
+++ b/pkg/analysis_server/test/services/correction/fix_test.dart |
@@ -4097,6 +4097,27 @@ main() { |
'''); |
} |
+ test_invokeConstructorUsingNew() async { |
+ await resolveTestUnit(''' |
+class C { |
+ C.c(); |
+} |
+main() { |
+ C c = C.c(); |
+} |
+'''); |
+ await assertHasFix( |
+ DartFixKind.INVOKE_CONSTRUCTOR_USING_NEW, |
+ ''' |
+class C { |
+ C.c(); |
+} |
+main() { |
+ C c = new C.c(); |
+} |
+'''); |
+ } |
+ |
test_isNotNull() async { |
await resolveTestUnit(''' |
main(p) { |