-
-
Notifications
You must be signed in to change notification settings - Fork 794
Closed
Closed
lint/correctness/noUnusedVariables falsePositive for multiple
new overloads with generic parameters#8435Bug
#8469 (+3)
Copy link
Labels
A-LinterArea: linterArea: linterL-JavaScriptLanguage: JavaScript and super languagesLanguage: JavaScript and super languagesS-Bug-confirmedStatus: report has been confirmed as a valid bugStatus: report has been confirmed as a valid bug
Description
Environment information
...Rule name
lint/correctness/noUnusedVariables
Playground link
Expected result
type Test = {
new <T>(): T;
new <T>({ test: T }): T;
}
Currently gives This type parameter T is unused. one the first new line.
As the generic parameter is used there, I would expect it to work correctly.
(Note: identical overloads without the new keyword work fine
type Test = {
<T>(): T;
<T>({ test: T }): T;
}
gives no issue
)
Code of Conduct
- I agree to follow Biome's Code of Conduct
ruidosujeira
Metadata
Metadata
Assignees
Labels
A-LinterArea: linterArea: linterL-JavaScriptLanguage: JavaScript and super languagesLanguage: JavaScript and super languagesS-Bug-confirmedStatus: report has been confirmed as a valid bugStatus: report has been confirmed as a valid bug