---
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: number);
	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;
    `----
