Index: pkg/front_end/testcases/inference/infer_accessor_from_later_inferred_field.dart |
diff --git a/pkg/front_end/testcases/inference/infer_parameter_type_setter_from_field.dart b/pkg/front_end/testcases/inference/infer_accessor_from_later_inferred_field.dart |
similarity index 63% |
copy from pkg/front_end/testcases/inference/infer_parameter_type_setter_from_field.dart |
copy to pkg/front_end/testcases/inference/infer_accessor_from_later_inferred_field.dart |
index 2374e76f44f36b87a2f587189dcc555194a956ef..0d751d919c2ee3857ad99ee73b268e048f6d6a14 100644 |
--- a/pkg/front_end/testcases/inference/infer_parameter_type_setter_from_field.dart |
+++ b/pkg/front_end/testcases/inference/infer_accessor_from_later_inferred_field.dart |
@@ -5,12 +5,15 @@ |
/*@testedFeatures=inference*/ |
library test; |
-class C extends D { |
- set foo(x) {} |
+class A implements B { |
+ get /*@topType=int*/ x => f(); |
+ void set x(/*@topType=int*/ value) {} |
} |
-class D { |
- int foo; |
+class B { |
+ var /*@topType=int*/ x = 0; |
} |
+dynamic f() => null; |
+ |
main() {} |