mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
26 lines
244 B
TypeScript
26 lines
244 B
TypeScript
// Correct
|
|
class Cls {
|
|
get a() {
|
|
return 1;
|
|
}
|
|
set a() {
|
|
return;
|
|
}
|
|
|
|
get b(): string {
|
|
}
|
|
set b(v) {
|
|
}
|
|
|
|
private get c() {}
|
|
private set c() {}
|
|
}
|
|
|
|
// Incorrect
|
|
class ClsBad {
|
|
get a() {
|
|
return;
|
|
}
|
|
set a(v) {
|
|
}
|
|
}
|