Index: tests/compiler/dart2js/concrete_type_inference_test.dart |
diff --git a/tests/compiler/dart2js/concrete_type_inference_test.dart b/tests/compiler/dart2js/concrete_type_inference_test.dart |
index 6a142cd98baa3d0ec1496a3b7bb29c7e30c251f3..de673f837735c351b4145890976fd022556a566a 100644 |
--- a/tests/compiler/dart2js/concrete_type_inference_test.dart |
+++ b/tests/compiler/dart2js/concrete_type_inference_test.dart |
@@ -25,7 +25,7 @@ void checkPrintType(String expression, checkType(compiler, type)) { |
var parameter = |
printElement.functionSignature.requiredParameters.first; |
var type = |
- compiler.globalInference.results.typeOf(parameter); |
+ compiler.globalInference.getGuaranteedTypeOfElement(parameter); |
checkType(compiler, type); |
})); |
@@ -36,7 +36,7 @@ void checkPrintType(String expression, checkType(compiler, type)) { |
var parameter = |
printElement.functionSignature.requiredParameters.first; |
var type = |
- compiler.globalInference.results.typeOf(parameter); |
+ compiler.globalInference.getGuaranteedTypeOfElement(parameter); |
checkType(compiler, type); |
})); |
@@ -47,7 +47,7 @@ void checkPrintType(String expression, checkType(compiler, type)) { |
var parameter = |
printElement.functionSignature.requiredParameters.first; |
var type = |
- compiler.globalInference.results.typeOf(parameter); |
+ compiler.globalInference.getGuaranteedTypeOfElement(parameter); |
checkType(compiler, type); |
})); |
} |
@@ -91,13 +91,13 @@ void testOptionalParameters() { |
var inference = compiler.globalInference; |
Expect.identical( |
commonMasks.uint31Type, |
- inference.results.typeOf(firstParameter)); |
+ inference.getGuaranteedTypeOfElement(firstParameter)); |
Expect.identical( |
commonMasks.nullType, |
- inference.results.typeOf(secondParameter)); |
+ inference.getGuaranteedTypeOfElement(secondParameter)); |
Expect.identical( |
commonMasks.nullType, |
- inference.results.typeOf(thirdParameter)); |
+ inference.getGuaranteedTypeOfElement(thirdParameter)); |
}); |
} |