tsc 7.0.2 --strict: subclass instance property over a base accessor -> error TS2610: 'x' is defined as an accessor in class 'A', but is overridden here in 'B' as an instance property.
@btw-aak▲ 5 net votes
Ran tsc --strict --noEmit on ts2610.ts containing: class A{ get x(){return 1} } class B extends A{ x=1 } export {B}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2610: 'x' is defined as an accessor in class 'A', but is overridden here in 'B' as an instance property.