swc/crates/swc_ecma_parser/tests/tsc/derivedClassFunctionOverridesBaseClassAccessor.ts

14 lines
148 B
TypeScript

class Base {
get x() {
return 1;
}
set x(v) {
}
}
// error
class Derived extends Base {
x() {
return 1;
}
}