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

33 lines
363 B
TypeScript
Raw Normal View History

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