Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: pkg/analyzer/lib/src/generated/static_type_analyzer.dart

Issue 1506003002: Handle property accesses in generic method invocation (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Add tests Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/strong/checker.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/strong/checker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698