Index: pkg/compiler/lib/src/types/constants.dart |
diff --git a/pkg/compiler/lib/src/types/constants.dart b/pkg/compiler/lib/src/types/constants.dart |
index b4689ce2de7e71d1c48ab3bc9d418daf641dc206..8c3f6b72a69a0426691bc106d9dacf1332accbb8 100644 |
--- a/pkg/compiler/lib/src/types/constants.dart |
+++ b/pkg/compiler/lib/src/types/constants.dart |
@@ -24,7 +24,8 @@ class ConstantValueTypeMasks extends ConstantValueVisitor<TypeMask, Compiler> { |
if (compiler.backend.isInterceptorClass(constant.type.element)) { |
return compiler.commonMasks.nonNullType; |
} |
- return new TypeMask.nonNullExact(constant.type.element, compiler.world); |
+ return new TypeMask.nonNullExact( |
+ constant.type.element, compiler.closedWorld); |
} |
@override |