mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +03:00
33 lines
363 B
TypeScript
33 lines
363 B
TypeScript
|
// @target: ES5
|
||
|
|
||
|
class C {
|
||
|
get x() {
|
||
|
return 1;
|
||
|
}
|
||
|
private set x(v) {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class D {
|
||
|
protected get x() {
|
||
|
return 1;
|
||
|
}
|
||
|
private set x(v) {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class E {
|
||
|
protected set x(v) {
|
||
|
}
|
||
|
get x() {
|
||
|
return 1;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class F {
|
||
|
protected static set x(v) {
|
||
|
}
|
||
|
static get x() {
|
||
|
return 1;
|
||
|
}
|
||
|
}
|