==== tests/cases/compiler/inheritanceMemberAccessorOverridingMethod.ts (4 errors) ==== class a { x() { return "20"; } } class b extends a { ~ !!! Class 'b' incorrectly extends base class 'a': !!! Types of property 'x' are incompatible: !!! Type 'string' is not assignable to type '() => string'. get x() { ~ !!! Accessors are only available when targeting ECMAScript 5 and higher. ~ !!! Class 'a' defines instance member function 'x', but extended class 'b' defines it as instance member accessor. return "20"; } set x(aValue: string) { ~ !!! Accessors are only available when targeting ECMAScript 5 and higher. } }