swc/crates/swc_ecma_parser/tests/tsc/accessorWithMismatchedAccessibilityModifiers.ts

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;
}
}