Index: pkg/analysis_server/test/services/refactoring/extract_method_test.dart |
diff --git a/pkg/analysis_server/test/services/refactoring/extract_method_test.dart b/pkg/analysis_server/test/services/refactoring/extract_method_test.dart |
index a092f1e78a71491d9d4b8a217d4fe756e7b7c76d..560847c58eae36c64088fe2ccb81fc1ef5a10bcc 100644 |
--- a/pkg/analysis_server/test/services/refactoring/extract_method_test.dart |
+++ b/pkg/analysis_server/test/services/refactoring/extract_method_test.dart |
@@ -1058,6 +1058,19 @@ main() { |
expect(refactoring.returnType, 'double'); |
} |
+ test_returnType_closure() async { |
+ indexTestUnit(''' |
+process(f(x)) {} |
+main() { |
+ process((x) => x * 2); |
+} |
+'''); |
+ _createRefactoringForString('(x) => x * 2'); |
+ // do check |
+ await refactoring.checkInitialConditions(); |
+ expect(refactoring.returnType, ''); |
+ } |
+ |
test_returnType_statements_nullMix() async { |
indexTestUnit(''' |
main(bool p) { |