We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9282f1b commit b61e229Copy full SHA for b61e229
pkg/analyzer/lib/src/dart/resolver/invocation_inference_helper.dart
@@ -45,8 +45,7 @@ class InvocationInferenceHelper {
45
/// type that is being invoked.
46
DartType computeInvokeReturnType(DartType type) {
47
if (type is FunctionType) {
48
- // TODO(scheglov) https://github.com/dart-lang/sdk/issues/41065
49
- return type.returnType ?? DynamicTypeImpl.instance;
+ return type.returnType;
50
} else {
51
return DynamicTypeImpl.instance;
52
}
0 commit comments