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 ff17fe1bb32cf43e89482aa2dfca104762a567bc..753c685f6e2806970692865cab48355cf38f0d08 100644 |
--- a/pkg/analysis_server/test/services/correction/fix_test.dart |
+++ b/pkg/analysis_server/test/services/correction/fix_test.dart |
@@ -4116,6 +4116,24 @@ main() { |
'''); |
} |
+ test_undefinedFunction_create_bottomArgument() async { |
+ await resolveTestUnit(''' |
+main() { |
+ test(throw 42); |
+} |
+'''); |
+ await assertHasFix( |
+ DartFixKind.CREATE_FUNCTION, |
+ ''' |
+main() { |
+ test(throw 42); |
+} |
+ |
+void test(arg0) { |
+} |
+'''); |
+ } |
+ |
test_undefinedFunction_create_duplicateArgumentNames() async { |
await resolveTestUnit(''' |
class C { |