Files
oxc-project__oxc/tasks/coverage/misc/fail/oxc-25692.ts
Boshen ae9be8f8bd fix(parser): forbid type parameters on quoted constructors (#25696)
Quoted constructor methods bypassed the AST-based constructor validation. Validate type parameters after resolving the method key, preserving the AST shape.

Validation: `just ready`, parser conformance, and allocation checks.

Closes #25692.

AI-assisted with Codex.
2026-08-15 05:02:23 +00:00

8 lines
77 B
TypeScript

class A {
'constructor'<T>() {}
}
class B {
get 'constructor'<T>() {}
}