Illegal declaration file can be emitted (duplicate parameter names) when spreading tuples into parameter positions #53011
Labels
Bug
A bug in TypeScript
Domain: Declaration Emit
The issue relates to the emission of d.ts files
Help Wanted
You can do this
Milestone
Bug Report
π Search Terms
parameter spread duplicate identifier parameter tuple
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
Less-degenerate form where you can't just not make that mistake:
declaration emit in either case becomes
which we consider a syntax error:
π Actual behavior
Multiple parameters with the same name get printed
π Expected behavior
Probably something like
(s: string, s_0: string) => void
insteadThe text was updated successfully, but these errors were encountered: