Index: tests/compiler/dart2js/simple_inferrer_global_field_closure_test.dart |
diff --git a/tests/compiler/dart2js/simple_inferrer_global_field_closure_test.dart b/tests/compiler/dart2js/simple_inferrer_global_field_closure_test.dart |
index 06bb0c45911d8edcbf616f274234c2830a2f0519..eb486bcd33d70fbd05984c8fa1345c33d66ba3d2 100644 |
--- a/tests/compiler/dart2js/simple_inferrer_global_field_closure_test.dart |
+++ b/tests/compiler/dart2js/simple_inferrer_global_field_closure_test.dart |
@@ -33,24 +33,24 @@ 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('method1', compiler.commonMasks.uint31Type); |
- checkReturn('returnInt1', compiler.commonMasks.uint31Type); |
- |
- checkReturn('method2', compiler.commonMasks.uint31Type); |
- checkReturn('returnInt2', compiler.commonMasks.uint31Type); |
- })); |
+ var typesInferrer = compiler.globalInference.typesInferrer; |
+ |
+ checkReturn(String name, type) { |
+ var element = findElement(compiler, name); |
+ Expect.equals( |
+ type, |
+ typesInferrer.getReturnTypeOfElement(element).simplify(compiler), |
+ name); |
+ } |
+ |
+ checkReturn('method1', compiler.commonMasks.uint31Type); |
+ checkReturn('returnInt1', compiler.commonMasks.uint31Type); |
+ |
+ checkReturn('method2', compiler.commonMasks.uint31Type); |
+ checkReturn('returnInt2', compiler.commonMasks.uint31Type); |
+ })); |
} |