Index: tests/compiler/dart2js/trust_type_annotations_test.dart |
diff --git a/tests/compiler/dart2js/trust_type_annotations_test.dart b/tests/compiler/dart2js/trust_type_annotations_test.dart |
index a90d7e50bd4df6d8c4ff64f609edbb3d1d994775..6b27867d3d9a59da03304663bfecb168aff1c09e 100644 |
--- a/tests/compiler/dart2js/trust_type_annotations_test.dart |
+++ b/tests/compiler/dart2js/trust_type_annotations_test.dart |
@@ -58,16 +58,16 @@ void main() { |
var element = classA.lookupMember(name); |
var mask = typesInferrer.getReturnTypeOfElement(element); |
Expect.isTrue(type.containsMask( |
- typesInferrer.getReturnTypeOfElement(element), compiler.world)); |
+ typesInferrer.getReturnTypeOfElement(element), compiler.closedWorld)); |
} |
checkType(String name, type) { |
var element = classA.lookupMember(name); |
Expect.isTrue(type.containsMask( |
- typesInferrer.getTypeOfElement(element), compiler.world)); |
+ typesInferrer.getTypeOfElement(element), compiler.closedWorld)); |
} |
var intMask = new TypeMask.subtype( |
- compiler.coreClasses.intClass, compiler.world); |
+ compiler.coreClasses.intClass, compiler.closedWorld); |
checkReturn('foo', intMask); |
checkReturn('faa', intMask); |