Index: pkg/compiler/lib/src/inferrer/closure_tracer.dart |
diff --git a/pkg/compiler/lib/src/inferrer/closure_tracer.dart b/pkg/compiler/lib/src/inferrer/closure_tracer.dart |
index 0d0072219917e76b71d08dbbea232831a51c731e..cd76db6f4ff669ebec32a7b7fffc3b65da6a9f9e 100644 |
--- a/pkg/compiler/lib/src/inferrer/closure_tracer.dart |
+++ b/pkg/compiler/lib/src/inferrer/closure_tracer.dart |
@@ -100,8 +100,10 @@ class ClosureTracerVisitor extends TracerVisitor { |
bool _checkIfCurrentUser(element) => |
inferrer.types.getInferredTypeOf(element) == currentUser; |
- bool _checkIfFunctionApply(element) => |
- compiler.commonElements.isFunctionApplyMethod(element); |
+ bool _checkIfFunctionApply(Element element) { |
+ return element is MemberElement && |
+ compiler.commonElements.isFunctionApplyMethod(element); |
+ } |
@override |
visitDynamicCallSiteTypeInformation(DynamicCallSiteTypeInformation info) { |