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 80b7e3d6216748fcfc36ac21f2868d0e3066f5ad..bb406ca6c231d023bf2c246d0841f18541dd0025 100644 |
--- a/pkg/compiler/lib/src/inferrer/closure_tracer.dart |
+++ b/pkg/compiler/lib/src/inferrer/closure_tracer.dart |
@@ -94,7 +94,7 @@ class ClosureTracerVisitor extends TracerVisitor<ApplyableTypeInformation> { |
inferrer.types.getInferredTypeOf(element) == currentUser; |
bool _checkIfFunctionApply(element) => |
- compiler.functionApplyMethod == element; |
+ compiler.commonElements.isFunctionApplyMethod(element); |
@override |
visitDynamicCallSiteTypeInformation(DynamicCallSiteTypeInformation info) { |