| library; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart:17:7: Error: Can't infer a type for 'y' as some of the inherited members have different types. |
| // Try adding an explicit type. |
| // var y; |
| // ^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| abstract class A extends core::Object { |
| synthetic constructor •() → self::A* |
| : super core::Object::•() |
| ; |
| abstract get x() → self::A*; |
| abstract set x(self::B* value) → void; |
| abstract get y() → self::B*; |
| abstract set y(self::A* value) → void; |
| } |
| abstract class B extends self::A { |
| synthetic constructor •() → self::B* |
| : super self::A::•() |
| ; |
| } |
| class C extends self::B { |
| field self::A* x = null; |
| field invalid-type y = null; |
| synthetic constructor •() → self::C* |
| : super self::B::•() |
| ; |
| } |
| static method main() → dynamic {} |