| Index: pkg/analyzer/lib/src/generated/static_type_analyzer.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/static_type_analyzer.dart b/pkg/analyzer/lib/src/generated/static_type_analyzer.dart
|
| index b85362645428d3a95d5bf914ef02b153d3a95f29..f69d2a4912f94be8002972ef337d7ccb870622be 100644
|
| --- a/pkg/analyzer/lib/src/generated/static_type_analyzer.dart
|
| +++ b/pkg/analyzer/lib/src/generated/static_type_analyzer.dart
|
| @@ -622,8 +622,7 @@ class StaticTypeAnalyzer extends SimpleAstVisitor<Object> {
|
| newFutureType = returnType as InterfaceTypeImpl;
|
| } else {
|
| InterfaceType futureType = targetType as InterfaceType;
|
| - newFutureType =
|
| - new InterfaceTypeImpl.con1(futureType.element);
|
| + newFutureType = new InterfaceTypeImpl(futureType.element);
|
| newFutureType.typeArguments = <DartType>[returnType];
|
| }
|
| // set the 'then' invocation type
|
|
|