mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 05:01:42 +03:00
20 lines
478 B
TypeScript
20 lines
478 B
TypeScript
|
// @target: ES5
|
||
|
// no errors
|
||
|
|
||
|
class B {
|
||
|
protected x: string;
|
||
|
protected static x: string;
|
||
|
}
|
||
|
|
||
|
class C extends B {
|
||
|
protected get y() { return this.x; }
|
||
|
protected set y(x) { this.y = this.x; }
|
||
|
protected foo() { return this.x; }
|
||
|
protected bar() { return this.foo(); }
|
||
|
|
||
|
protected static get y() { return this.x; }
|
||
|
protected static set y(x) { this.y = this.x; }
|
||
|
protected static foo() { return this.x; }
|
||
|
protected static bar() { this.foo(); }
|
||
|
}
|