Index: lib/compiler/implementation/elements/elements.dart |
diff --git a/lib/compiler/implementation/elements/elements.dart b/lib/compiler/implementation/elements/elements.dart |
index d3376b4614c96518fee60a06f8dc3de817b3d99d..55a90d068d046c4e652c5cae03a115ac1d1c7d2e 100644 |
--- a/lib/compiler/implementation/elements/elements.dart |
+++ b/lib/compiler/implementation/elements/elements.dart |
@@ -1650,7 +1650,7 @@ class Elements { |
} |
static bool isClosureSend(Send send, Element element) { |
- if (send.isPropertyAccess) return false; |
+ if (send.isPropertyAccessOrTypeReference) return false; |
if (send.receiver !== null) return false; |
// (o)() or foo()(). |
if (element === null && send.selector.asIdentifier() === null) return true; |