mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
22 lines
417 B
TypeScript
22 lines
417 B
TypeScript
// @target: ES5
|
|
|
|
class Base {
|
|
protected static x: string;
|
|
protected static fn(): string {
|
|
return '';
|
|
}
|
|
|
|
protected static get a() { return 1; }
|
|
protected static set a(v) { }
|
|
}
|
|
|
|
// should be error
|
|
class Derived extends Base {
|
|
private static x: string;
|
|
private static fn(): string {
|
|
return '';
|
|
}
|
|
|
|
private static get a() { return 1; }
|
|
private static set a(v) { }
|
|
} |