Index: pkg/compiler/lib/src/inferrer/type_graph_nodes.dart |
diff --git a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart |
index 5401212ccbe94fa6e105a053059058edb587a2b4..3a62a544c2191e073cbdd61aa28282b2056ee591 100644 |
--- a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart |
+++ b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart |
@@ -854,7 +854,7 @@ class DynamicCallSiteTypeInformation extends CallSiteTypeInformation { |
bool targetsIncludeComplexNoSuchMethod(InferrerEngine inferrer) { |
return targets.any((Element e) { |
- return e is FunctionElement && |
+ return e is MethodElement && |
e.isInstanceMember && |
e.name == Identifiers.noSuchMethod_ && |
inferrer.backend.noSuchMethodRegistry.isComplex(e); |