Index: tests/compiler/dart2js/simple_inferrer_const_closure5_test.dart |
diff --git a/tests/compiler/dart2js/simple_inferrer_const_closure5_test.dart b/tests/compiler/dart2js/simple_inferrer_const_closure5_test.dart |
index 834ccd7633187b5f5cf48fa58ef2f6bfe766c73e..413a3858f26243911e03aa273cbab611807805d8 100644 |
--- a/tests/compiler/dart2js/simple_inferrer_const_closure5_test.dart |
+++ b/tests/compiler/dart2js/simple_inferrer_const_closure5_test.dart |
@@ -25,22 +25,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.numType); |
- })); |
+ 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.numType); |
+ })); |
} |