Files
oxc-project__oxc/tasks/coverage/misc/fail/readonly-constructor-overload.ts
T
camc314 1916f31135 fix(parser): reject readonly modifier on constructors (#26612)
The parser accepted `class C { readonly constructor() {} }` and silently discarded `readonly`. Report TS1024 on the modifier instead, matching TypeScript and the existing validation for ordinary methods.
2026-09-14 05:08:44 +00:00

5 lines
83 B
TypeScript

class C {
readonly constructor(value: number);
constructor(value: number) {}
}