Closed
Description
π Search Terms
isolatedDeclaerations autofix, drop, missing, unknown, type parameter, type argument, generics, template type
π Version & Regression Information
- This changed between versions 5.6 and 5.7
β― Playground Link
π» Code
let x : unknown;
export const s = new Set([x]);
π Actual behavior
Applying the quick fix gives incorrect code with unknown
missing:
let x : unknown;
export const s: Set = new Set([x]);
π Expected behavior
let x : unknown;
export const s: Set<unknown> = new Set([x]);
Additional information about the issue
I haven't checked yet, but I'd guess this to be related to #59665
Metadata
Metadata
Assignees
Labels
No labels