Index: tests/compiler/dart2js/type_inference7_test.dart |
diff --git a/tests/compiler/dart2js/type_inference7_test.dart b/tests/compiler/dart2js/type_inference7_test.dart |
index e4ec10fd6279d4dfe901387920d6e0c9c66546bc..184903b787abf7c39c3a3d91944956e9aaf9ce2f 100644 |
--- a/tests/compiler/dart2js/type_inference7_test.dart |
+++ b/tests/compiler/dart2js/type_inference7_test.dart |
@@ -26,14 +26,14 @@ Future runTest() async { |
var typesInferrer = compiler.globalInference.typesInferrerInternal; |
var closedWorld = typesInferrer.closedWorld; |
var commonMasks = closedWorld.commonMasks; |
- var foo = findElement(compiler, "foo"); |
+ dynamic foo = findElement(compiler, "foo"); |
// Return type is null|bool. |
var mask = typesInferrer.getReturnTypeOfElement(foo); |
Expect.isTrue(mask.isNullable); |
Expect.equals( |
commonMasks.boolType, simplify(mask.nonNullable(), closedWorld)); |
// First parameter is uint31|String|bool. |
- var mask1 = typesInferrer.getTypeOfElement(foo.parameters[0]); |
+ dynamic mask1 = typesInferrer.getTypeOfElement(foo.parameters[0]); |
Expect.isTrue(mask1.isUnion); |
var expectedTypes = new Set.from( |
[commonMasks.uint31Type, commonMasks.stringType, commonMasks.boolType]); |
@@ -57,7 +57,7 @@ Future runTest() async { |
var typesInferrer = compiler.globalInference.typesInferrerInternal; |
var closedWorld = typesInferrer.closedWorld; |
var commonMasks = closedWorld.commonMasks; |
- var foo = findElement(compiler, "foo"); |
+ dynamic foo = findElement(compiler, "foo"); |
// Return type is null. |
var mask = typesInferrer.getReturnTypeOfElement(foo); |
Expect.isTrue(mask.isNullable); |