Index: tests/compiler/dart2js/simple_inferrer_final_field2_test.dart |
diff --git a/tests/compiler/dart2js/simple_inferrer_final_field2_test.dart b/tests/compiler/dart2js/simple_inferrer_final_field2_test.dart |
index 1045fb3e9277357501d9180e0308ff2ab01db5ae..0bb29856c4013fd4d5b6cdd433ca7af023c62fe6 100644 |
--- a/tests/compiler/dart2js/simple_inferrer_final_field2_test.dart |
+++ b/tests/compiler/dart2js/simple_inferrer_final_field2_test.dart |
@@ -28,15 +28,18 @@ void main() { |
Uri uri = new Uri(scheme: 'source'); |
var compiler = compilerFor(TEST, uri); |
asyncTest(() => compiler.run(uri).then((_) { |
- var typesInferrer = compiler.globalInference.typesInferrer; |
- |
- checkFieldTypeInClass(String className, String fieldName, type) { |
- var cls = findElement(compiler, className); |
- var element = cls.lookupLocalMember(fieldName); |
- Expect.isTrue(typesInferrer.getTypeOfElement(element).containsOnly(type)); |
- } |
- |
- checkFieldTypeInClass('A', 'intField', compiler.backend.uint31Implementation); |
- checkFieldTypeInClass('A', 'stringField', compiler.backend.stringImplementation); |
- })); |
+ var typesInferrer = compiler.globalInference.typesInferrer; |
+ |
+ checkFieldTypeInClass(String className, String fieldName, type) { |
+ var cls = findElement(compiler, className); |
+ var element = cls.lookupLocalMember(fieldName); |
+ Expect.isTrue( |
+ typesInferrer.getTypeOfElement(element).containsOnly(type)); |
+ } |
+ |
+ checkFieldTypeInClass( |
+ 'A', 'intField', compiler.backend.uint31Implementation); |
+ checkFieldTypeInClass( |
+ 'A', 'stringField', compiler.backend.stringImplementation); |
+ })); |
} |