| Index: tests/compiler/dart2js/simple_inferrer_closure_test.dart
|
| diff --git a/tests/compiler/dart2js/simple_inferrer_closure_test.dart b/tests/compiler/dart2js/simple_inferrer_closure_test.dart
|
| index 23d6db0a59ac38aa9c6d606e33263e76f7568e60..7ad5e58a5805557da9e741956803d57b92614b8f 100644
|
| --- a/tests/compiler/dart2js/simple_inferrer_closure_test.dart
|
| +++ b/tests/compiler/dart2js/simple_inferrer_closure_test.dart
|
| @@ -82,23 +82,24 @@ main() {
|
| void main() {
|
| Uri uri = new Uri(scheme: 'source');
|
| var compiler = compilerFor(TEST, uri);
|
| - compiler.runCompiler(uri);
|
| - var typesInferrer = compiler.typesTask.typesInferrer;
|
| + compiler.runCompiler(uri).then((_) {
|
| + var typesInferrer = compiler.typesTask.typesInferrer;
|
|
|
| - checkReturn(String name, type) {
|
| - var element = findElement(compiler, name);
|
| - Expect.equals(type, typesInferrer.internal.returnTypeOf[element]);
|
| - }
|
| + checkReturn(String name, type) {
|
| + var element = findElement(compiler, name);
|
| + Expect.equals(type, typesInferrer.internal.returnTypeOf[element]);
|
| + }
|
|
|
| - checkReturn('returnInt1', typesInferrer.intType);
|
| - // TODO(ngeoffray): We don't use types of mutated captured
|
| - // variables anymore, because they could lead to optimistic results
|
| - // needing to be re-analyzed.
|
| - checkReturn('returnInt2', typesInferrer.dynamicType);
|
| - checkReturn('returnInt3', typesInferrer.intType);
|
| - checkReturn('returnInt4', typesInferrer.intType);
|
| + checkReturn('returnInt1', typesInferrer.intType);
|
| + // TODO(ngeoffray): We don't use types of mutated captured
|
| + // variables anymore, because they could lead to optimistic results
|
| + // needing to be re-analyzed.
|
| + checkReturn('returnInt2', typesInferrer.dynamicType);
|
| + checkReturn('returnInt3', typesInferrer.intType);
|
| + checkReturn('returnInt4', typesInferrer.intType);
|
|
|
| - checkReturn('returnDyn1', typesInferrer.dynamicType);
|
| - checkReturn('returnDyn2', typesInferrer.dynamicType);
|
| - checkReturn('returnDyn3', typesInferrer.dynamicType);
|
| + checkReturn('returnDyn1', typesInferrer.dynamicType);
|
| + checkReturn('returnDyn2', typesInferrer.dynamicType);
|
| + checkReturn('returnDyn3', typesInferrer.dynamicType);
|
| + });
|
| }
|
|
|