Files
tsgo/testdata/baselines/reference/compiler/declarationEmitSetAccessorNoParameter.errors.txt
d443beda5e Fix panic in declaration emit for a set accessor with no parameters (#4161)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jakebailey <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
2026-06-03 20:04:00 +00:00

13 lines
610 B
Plaintext

declarationEmitSetAccessorNoParameter.ts(2,7): error TS1049: A 'set' accessor must have exactly one parameter.
declarationEmitSetAccessorNoParameter.ts(2,7): error TS7032: Property 'foo' implicitly has type 'any', because its set accessor lacks a parameter type annotation.
==== declarationEmitSetAccessorNoParameter.ts (2 errors) ====
class C {
set foo() { }
~~~
!!! error TS1049: A 'set' accessor must have exactly one parameter.
~~~
!!! error TS7032: Property 'foo' implicitly has type 'any', because its set accessor lacks a parameter type annotation.
}