| Index: tests/compiler/dart2js/simple_inferrer_test.dart
|
| diff --git a/tests/compiler/dart2js/simple_inferrer_test.dart b/tests/compiler/dart2js/simple_inferrer_test.dart
|
| index 295784ad3b085645d259301a5053681883ad78a0..c6f97d509d1f08dd34f45ad6599828347c839842 100644
|
| --- a/tests/compiler/dart2js/simple_inferrer_test.dart
|
| +++ b/tests/compiler/dart2js/simple_inferrer_test.dart
|
| @@ -729,7 +729,7 @@ void main() {
|
| asyncTest(() => compiler.run(uri).then((_) {
|
| var commonMasks = compiler.commonMasks;
|
| var typesInferrer = compiler.globalInference.typesInferrer;
|
| - var world = compiler.world;
|
| + var world = compiler.closedWorld;
|
|
|
| checkReturn(String name, type) {
|
| var element = findElement(compiler, name);
|
| @@ -758,7 +758,7 @@ void main() {
|
| checkReturn('returnEmpty1', const TypeMask.nonNullEmpty());
|
| checkReturn('returnEmpty2', const TypeMask.nonNullEmpty());
|
| TypeMask intType = new TypeMask.nonNullSubtype(
|
| - compiler.coreClasses.intClass, compiler.world);
|
| + compiler.coreClasses.intClass, compiler.closedWorld);
|
| checkReturn('testIsCheck1', intType);
|
| checkReturn('testIsCheck2', intType);
|
| checkReturn('testIsCheck3', intType.nullable());
|
| @@ -791,7 +791,7 @@ void main() {
|
| checkReturn('testIf1', commonMasks.uint31Type.nullable());
|
| checkReturn('testIf2', commonMasks.uint31Type.nullable());
|
| checkReturn('returnAsString', new TypeMask.subtype(
|
| - compiler.coreClasses.stringClass, compiler.world));
|
| + compiler.coreClasses.stringClass, compiler.closedWorld));
|
| checkReturn('returnIntAsNum', commonMasks.uint31Type);
|
| checkReturn('returnAsTypedef', commonMasks.functionType.nullable());
|
| checkReturn('returnTopLevelGetter', commonMasks.uint31Type);
|
| @@ -799,7 +799,7 @@ void main() {
|
| checkReturn('testLabeledIf', commonMasks.uint31Type.nullable());
|
| checkReturn('testSwitch1', simplify(
|
| commonMasks.intType
|
| - .union(commonMasks.doubleType, compiler.world)
|
| + .union(commonMasks.doubleType, compiler.closedWorld)
|
| .nullable(),
|
| compiler));
|
| checkReturn('testSwitch2', commonMasks.uint31Type);
|
|
|