Index: tests/compiler/dart2js/simple_inferrer_final_field_test.dart |
diff --git a/tests/compiler/dart2js/simple_inferrer_final_field_test.dart b/tests/compiler/dart2js/simple_inferrer_final_field_test.dart |
index a3a25166c37e329490bc538eaaa859e3d3bdb87a..d36ffa97283199d8bd3ea2385c49068988f419f0 100644 |
--- a/tests/compiler/dart2js/simple_inferrer_final_field_test.dart |
+++ b/tests/compiler/dart2js/simple_inferrer_final_field_test.dart |
@@ -31,20 +31,21 @@ 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.equals(type, |
- simplify(typesInferrer.getTypeOfElement(element), compiler)); |
- } |
- |
- checkFieldTypeInClass('A', 'intField', compiler.commonMasks.uint31Type); |
- checkFieldTypeInClass('A', 'giveUpField1', |
- findTypeMask(compiler, 'Interceptor', 'nonNullSubclass')); |
- checkFieldTypeInClass('A', 'giveUpField2', |
- compiler.commonMasks.dynamicType.nonNullable()); |
- checkFieldTypeInClass('A', 'fieldParameter', compiler.commonMasks.uint31Type); |
- })); |
+ var typesInferrer = compiler.globalInference.typesInferrer; |
+ |
+ checkFieldTypeInClass(String className, String fieldName, type) { |
+ var cls = findElement(compiler, className); |
+ var element = cls.lookupLocalMember(fieldName); |
+ Expect.equals(type, |
+ simplify(typesInferrer.getTypeOfElement(element), compiler)); |
+ } |
+ |
+ checkFieldTypeInClass('A', 'intField', compiler.commonMasks.uint31Type); |
+ checkFieldTypeInClass('A', 'giveUpField1', |
+ findTypeMask(compiler, 'Interceptor', 'nonNullSubclass')); |
+ checkFieldTypeInClass('A', 'giveUpField2', |
+ compiler.commonMasks.dynamicType.nonNullable()); |
+ checkFieldTypeInClass( |
+ 'A', 'fieldParameter', compiler.commonMasks.uint31Type); |
+ })); |
} |