🐛 lint/noRedeclare
should allow type param and function param with the same name
#1992
Closed
1 task done
Labels
A-Linter
Area: linter
L-JavaScript
Language: JavaScript and super languages
S-Bug-confirmed
Status: report has been confirmed as a valid bug
Environment information
What happened?
Using the same name for a function parameter and a type parameter triggers
lint/noRedeclare
.Playground.
Expected result
Because a type parameter is a type and a function parameter is a variable, both should coexist. This should not be reported as a redeclaration.
Code of Conduct
The text was updated successfully, but these errors were encountered: