| // Formatted problems: |
| // |
| // pkg/front_end/testcases/inference_new/infer_field_override_getter_overrides_setter.dart:19:24: Error: The return type of the method 'C.x' is 'int', which does not match the return type of the overridden method, 'num'. |
| // Change to a subtype of 'num'. |
| // var /*@topType=int*/ x; |
| // ^ |
| // pkg/front_end/testcases/inference_new/infer_field_override_getter_overrides_setter.dart:9:12: Context: This is the overridden method ('x'). |
| // void set x(num value); |
| // ^ |
| |
| // Unhandled errors: |
| // |
| // pkg/front_end/testcases/inference_new/infer_field_override_getter_overrides_setter.dart:19:24: Error: The return type of the method 'C.x' is 'int', which does not match the return type of the overridden method, 'num'. |
| // Change to a subtype of 'num'. |
| // var /*@topType=int*/ x; |
| // ^ |
| |
| library test; |
| import self as self; |
| import "dart:core" as core; |
| |
| abstract class A extends core::Object { |
| synthetic constructor •() → self::A |
| : super core::Object::•() |
| ; |
| abstract set x(core::num value) → void; |
| } |
| abstract class B extends self::A { |
| synthetic constructor •() → self::B |
| : super self::A::•() |
| ; |
| abstract get x() → core::int; |
| } |
| class C extends self::B { |
| field core::int x = null; |
| synthetic constructor •() → self::C |
| : super self::B::•() |
| ; |
| } |
| static method main() → dynamic {} |