Index: tests/compiler/dart2js/simple_inferrer_global_field_closure2_test.dart |
diff --git a/tests/compiler/dart2js/simple_inferrer_global_field_closure2_test.dart b/tests/compiler/dart2js/simple_inferrer_global_field_closure2_test.dart |
index cd5715db27c88dfa23741d361891efaecee2cd14..c2e7492ced07abbebe5ed37c43eb570828b9f972 100644 |
--- a/tests/compiler/dart2js/simple_inferrer_global_field_closure2_test.dart |
+++ b/tests/compiler/dart2js/simple_inferrer_global_field_closure2_test.dart |
@@ -24,22 +24,22 @@ main() { |
} |
"""; |
- |
void main() { |
Uri uri = new Uri(scheme: 'source'); |
var compiler = compilerFor(TEST, uri); |
asyncTest(() => compiler.run(uri).then((_) { |
- var typesInferrer = compiler.globalInference.typesInferrer; |
- |
- checkArgument(String functionName, type) { |
- var functionElement = findElement(compiler, functionName); |
- var signature = functionElement.functionSignature; |
- var element = signature.requiredParameters.first; |
- Expect.equals(type, |
- simplify(typesInferrer.getTypeOfElement(element), compiler), |
- functionName); |
- } |
- |
- checkArgument('method', compiler.commonMasks.uint31Type); |
- })); |
+ var typesInferrer = compiler.globalInference.typesInferrer; |
+ |
+ checkArgument(String functionName, type) { |
+ var functionElement = findElement(compiler, functionName); |
+ var signature = functionElement.functionSignature; |
+ var element = signature.requiredParameters.first; |
+ Expect.equals( |
+ type, |
+ simplify(typesInferrer.getTypeOfElement(element), compiler), |
+ functionName); |
+ } |
+ |
+ checkArgument('method', compiler.commonMasks.uint31Type); |
+ })); |
} |