| 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 a11e6e068ec86526fd27e3f6fa49ee3ccf7dc9f9..caaa5a89e218639e21e5b6a5d77b9c6ecd5ffa75 100644
|
| --- a/pkg/analyzer/lib/src/generated/static_type_analyzer.dart
|
| +++ b/pkg/analyzer/lib/src/generated/static_type_analyzer.dart
|
| @@ -1828,6 +1828,9 @@ class StaticTypeAnalyzer extends SimpleAstVisitor<Object> {
|
| fnType is FunctionTypeImpl &&
|
| ts is StrongTypeSystemImpl) {
|
| FunctionTypeImpl genericFunction = fnType.originalFunction;
|
| + if (element is PropertyAccessorElement) {
|
| + genericFunction = element.type.returnType;
|
| + }
|
| if (genericFunction.boundTypeParameters.isEmpty) {
|
| return false;
|
| }
|
|
|