Index: pkg/analyzer/lib/src/generated/resolver.dart |
diff --git a/pkg/analyzer/lib/src/generated/resolver.dart b/pkg/analyzer/lib/src/generated/resolver.dart |
index dac1d39a7a2c26bbc76b7b2d88e64e8a71966752..6fa534577b68c0d3559d687b66adfdde99d532a7 100644 |
--- a/pkg/analyzer/lib/src/generated/resolver.dart |
+++ b/pkg/analyzer/lib/src/generated/resolver.dart |
@@ -7282,7 +7282,7 @@ class ResolverVisitor extends ScopedVisitor { |
originalType.typeFormals.isNotEmpty && |
ts is StrongTypeSystemImpl) { |
contextType = ts.inferGenericFunctionCall(typeProvider, originalType, |
- DartType.EMPTY_LIST, DartType.EMPTY_LIST, returnContextType); |
+ DartType.EMPTY_LIST, DartType.EMPTY_LIST, originalType.returnType, returnContextType); |
} |
InferenceContext.setType(node.argumentList, contextType); |