Declaration emit is incorrect when type parameter names collide #16313
Labels
Bug
A bug in TypeScript
Domain: Declaration Emit
The issue relates to the emission of d.ts files
Fixed
A PR has been merged for this issue
Milestone
Calling
f(10)
will produce something of type<T>(x: T) => number
, however, the declaration emit is the following:But calling that
f
produces the type<T>(x: T) => T
.The text was updated successfully, but these errors were encountered: