oxc/crates/oxc_isolated_declarations/tests/snapshots/set-get-accessor.snap
Dunqing 6b7d3ed613 perf(isolated-declarations): should clone transformed AST rather than original AST (#6078)
close: #6074
Performance regression introduced by https://github.com/oxc-project/oxc/pull/5909. After this PR we back to the fold pattern again
2024-09-26 15:50:27 +00:00

34 lines
638 B
Text

---
source: crates/oxc_isolated_declarations/tests/mod.rs
input_file: crates/oxc_isolated_declarations/tests/fixtures/set-get-accessor.ts
---
```
==================== .D.TS ====================
declare class Cls {
get a(): number;
set a(value);
get b(): string;
set b(v: string);
private get c();
private set c(value);
}
declare class ClsBad {
get a();
set a(v);
}
==================== Errors ====================
x TS9009: At least one accessor must have an explicit return type annotation
| with --isolatedDeclarations.
,-[21:7]
20 | class ClsBad {
21 | get a() {
: ^
22 | return;
`----
```