mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
1916f31135
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.
5 lines
83 B
TypeScript
5 lines
83 B
TypeScript
class C {
|
|
readonly constructor(value: number);
|
|
constructor(value: number) {}
|
|
}
|