Index: pkg/compiler/lib/src/elements/elements.dart |
diff --git a/pkg/compiler/lib/src/elements/elements.dart b/pkg/compiler/lib/src/elements/elements.dart |
index 1df89f88f544ec912a55c7566b5c0984110e0874..e26d783b81f7282c405b9440ab3e0cd301668e54 100644 |
--- a/pkg/compiler/lib/src/elements/elements.dart |
+++ b/pkg/compiler/lib/src/elements/elements.dart |
@@ -801,9 +801,9 @@ class Elements { |
ClassElement cls = constructor.enclosingClass; |
return cls.library == compiler.commonElements.typedDataLibrary && |
compiler.backend.isNative(cls) && |
- compiler.world |
+ compiler.closedWorld |
.isSubtypeOf(cls, compiler.commonElements.typedDataClass) && |
- compiler.world.isSubtypeOf(cls, compiler.coreClasses.listClass) && |
+ compiler.closedWorld.isSubtypeOf(cls, compiler.coreClasses.listClass) && |
constructor.name == ''; |
} |