Index: pkg/compiler/lib/src/inferrer/node_tracer.dart |
diff --git a/pkg/compiler/lib/src/inferrer/node_tracer.dart b/pkg/compiler/lib/src/inferrer/node_tracer.dart |
index b30ae28563a0d665c971f998951a522aa04b2492..df7dd31a7ccb08f7a4ab8d2bc6e733daa5a8996f 100644 |
--- a/pkg/compiler/lib/src/inferrer/node_tracer.dart |
+++ b/pkg/compiler/lib/src/inferrer/node_tracer.dart |
@@ -406,7 +406,8 @@ abstract class TracerVisitor implements TypeInformationVisitor { |
*/ |
bool isParameterOfListAddingMethod(Element element) { |
if (!element.isRegularParameter) return false; |
- if (element.enclosingClass != compiler.commonElements.jsArrayClass) { |
+ if (element.enclosingClass != |
+ inferrer.closedWorld.commonElements.jsArrayClass) { |
return false; |
} |
String name = element.enclosingElement.name; |
@@ -420,7 +421,8 @@ abstract class TracerVisitor implements TypeInformationVisitor { |
*/ |
bool isParameterOfMapAddingMethod(Element element) { |
if (!element.isRegularParameter) return false; |
- if (element.enclosingClass != compiler.commonElements.mapLiteralClass) { |
+ if (element.enclosingClass != |
+ inferrer.closedWorld.commonElements.mapLiteralClass) { |
return false; |
} |
String name = element.enclosingElement.name; |