| 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 119b89edba94fd988b635e0e3c711c46603e5e7b..e904e1473aeb0a764def5f2f468b455e8b70396b 100644
|
| --- a/pkg/analysis_server/lib/src/services/refactoring/extract_method.dart
|
| +++ b/pkg/analysis_server/lib/src/services/refactoring/extract_method.dart
|
| @@ -1219,8 +1219,7 @@ class _ReturnTypeComputer extends RecursiveAstVisitor {
|
| if (returnType is InterfaceType && type is InterfaceType) {
|
| returnType = InterfaceType.getSmartLeastUpperBound(returnType, type);
|
| } else {
|
| - returnType = context.typeSystem
|
| - .getLeastUpperBound(context.typeProvider, returnType, type);
|
| + returnType = context.typeSystem.getLeastUpperBound(returnType, type);
|
| }
|
| }
|
| }
|
|
|