oxc/crates/oxc_isolated_declarations/tests/fixtures/set-get-accessor.ts
overlookmotel dc924892cc test: add trailing line breaks to conformance fixtures (#5541)
Continuation of #5537. Ensure all conformance fixture files have a trailing line break.
2024-09-06 12:55:17 +00:00

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) {
}
}