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

15 lines
285 B
TypeScript

class Base {
private x: { foo: string };
}
class Derived extends Base {
private x: { foo: string; bar: string; }; // error
}
class Base2 {
private static y: { foo: string };
}
class Derived2 extends Base2 {
private static y: { foo: string; bar: string; }; // error
}