mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 15:12:08 +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
|
|
} |