Index: pkg/compiler/lib/src/world.dart |
diff --git a/pkg/compiler/lib/src/world.dart b/pkg/compiler/lib/src/world.dart |
index 2cf1b8f7f1528b75896ea0e74f1d26d65a68df8a..99b449334a0f99394ed7e745734701baca2aa017 100644 |
--- a/pkg/compiler/lib/src/world.dart |
+++ b/pkg/compiler/lib/src/world.dart |
@@ -341,7 +341,7 @@ class World implements ClassWorld { |
// Used by selectors. |
bool isForeign(Element element) { |
- return element.isForeign(compiler.backend); |
+ return compiler.backend.isForeign(element); |
} |
Set<ClassElement> typesImplementedBySubclassesOf(ClassElement cls) { |