| Index: pkg/analysis_server/lib/src/services/refactoring/extract_method.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/refactoring/extract_method.dart b/pkg/analysis_server/lib/src/services/refactoring/extract_method.dart
|
| index 361d537c14e27bc73630659971c4b66f02ba8b7d..d40545c4927cf61c588c68455119cc9825150e2a 100644
|
| --- a/pkg/analysis_server/lib/src/services/refactoring/extract_method.dart
|
| +++ b/pkg/analysis_server/lib/src/services/refactoring/extract_method.dart
|
| @@ -615,7 +615,9 @@ class ExtractMethodRefactoringImpl extends RefactoringImpl
|
| }
|
|
|
| void _initializeReturnType() {
|
| - if (_returnType == null) {
|
| + if (_selectionFunctionExpression != null) {
|
| + returnType = '';
|
| + } else if (_returnType == null) {
|
| returnType = 'void';
|
| } else {
|
| returnType = _getTypeCode(_returnType);
|
|
|