| Index: pkg/analyzer/lib/src/generated/error_verifier.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/error_verifier.dart b/pkg/analyzer/lib/src/generated/error_verifier.dart
|
| index 26c1a026b1ecbeca910a0a526230316f194b395b..739361e4e9518b9ad67d07064713a9a343e410e1 100644
|
| --- a/pkg/analyzer/lib/src/generated/error_verifier.dart
|
| +++ b/pkg/analyzer/lib/src/generated/error_verifier.dart
|
| @@ -3999,7 +3999,9 @@ class ErrorVerifier extends RecursiveAstVisitor<Object> {
|
| }
|
| DartType invokeType = node.staticInvokeType;
|
| DartType declaredType = node.function.staticType;
|
| - if (invokeType is FunctionType && declaredType is FunctionType) {
|
| + if (invokeType is FunctionType &&
|
| + declaredType is FunctionType &&
|
| + declaredType.typeFormals.isNotEmpty) {
|
| Iterable<DartType> typeArgs =
|
| FunctionTypeImpl.recoverTypeArguments(declaredType, invokeType);
|
| if (typeArgs.any((t) => t.isDynamic)) {
|
|
|