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

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

Issue 1838383002: Closures shouldn't have fuzzy arrow type. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months 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/test/src/task/strong/checker_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/task/strong/info.dart
diff --git a/pkg/analyzer/lib/src/task/strong/info.dart b/pkg/analyzer/lib/src/task/strong/info.dart
index f39efffd4eb1fb08e7ea6b1396c489ab3cd681b9..41703e12a13f9ba325536ab51ca59d45ff62c30c 100644
--- a/pkg/analyzer/lib/src/task/strong/info.dart
+++ b/pkg/analyzer/lib/src/task/strong/info.dart
@@ -518,7 +518,9 @@ abstract class StaticInfo {
static bool isKnownFunction(Expression expression) {
Element element = null;
- if (expression is PropertyAccess) {
+ if (expression is FunctionExpression) {
+ return true;
+ } else if (expression is PropertyAccess) {
element = expression.propertyName.staticElement;
} else if (expression is Identifier) {
element = expression.staticElement;
« no previous file with comments | « no previous file | pkg/analyzer/test/src/task/strong/checker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698