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

Unified Diff: pkg/analyzer/lib/src/task/strong/checker.dart

Issue 1506003002: Handle property accesses in generic method invocation (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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
Index: pkg/analyzer/lib/src/task/strong/checker.dart
diff --git a/pkg/analyzer/lib/src/task/strong/checker.dart b/pkg/analyzer/lib/src/task/strong/checker.dart
index d557eb244e0f334d97b125182e4a8d3ad138eadd..0ece1c740890f128e6c53b1c058224a5231dc269 100644
--- a/pkg/analyzer/lib/src/task/strong/checker.dart
+++ b/pkg/analyzer/lib/src/task/strong/checker.dart
@@ -614,7 +614,7 @@ class CodeChecker extends RecursiveAstVisitor {
return;
}
InterfaceType futureType = rules.provider.futureType;
- DartType actualType = expression.staticType;
+ DartType actualType = expression?.staticType;
if (body.isAsynchronous &&
!body.isGenerator &&
actualType is InterfaceType &&

Powered by Google App Engine
This is Rietveld 408576698