mirror of
https://github.com/swc-project/swc.git
synced 2024-12-28 08:04:43 +03:00
15 lines
285 B
TypeScript
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
|
|
} |