Index: tests/compiler/dart2js/simple_inferrer_const_closure2_test.dart |
diff --git a/tests/compiler/dart2js/simple_inferrer_const_closure2_test.dart b/tests/compiler/dart2js/simple_inferrer_const_closure2_test.dart |
index 4ea68a94f7e2c68c0943b8dae178e4b4881f2839..175d716e8faba4e9dabad57a1c1888f1140c2710 100644 |
--- a/tests/compiler/dart2js/simple_inferrer_const_closure2_test.dart |
+++ b/tests/compiler/dart2js/simple_inferrer_const_closure2_test.dart |
@@ -24,21 +24,21 @@ main() { |
} |
"""; |
- |
void main() { |
Uri uri = new Uri(scheme: 'source'); |
var compiler = compilerFor(TEST, uri); |
asyncTest(() => compiler.run(uri).then((_) { |
- var typesInferrer = compiler.globalInference.typesInferrer; |
- |
- checkReturn(String name, type) { |
- var element = findElement(compiler, name); |
- Expect.equals(type, |
- typesInferrer.getReturnTypeOfElement(element).simplify(compiler), |
- name); |
- } |
- |
- checkReturn('method', compiler.commonMasks.numType); |
- checkReturn('returnNum', compiler.commonMasks.numType); |
- })); |
+ var typesInferrer = compiler.globalInference.typesInferrer; |
+ |
+ checkReturn(String name, type) { |
+ var element = findElement(compiler, name); |
+ Expect.equals( |
+ type, |
+ typesInferrer.getReturnTypeOfElement(element).simplify(compiler), |
+ name); |
+ } |
+ |
+ checkReturn('method', compiler.commonMasks.numType); |
+ checkReturn('returnNum', compiler.commonMasks.numType); |
+ })); |
} |