Skip to content

Mark unused @template type parameter #25595

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue Jul 12, 2018 · 1 comment
Closed

Mark unused @template type parameter #25595

ghost opened this issue Jul 12, 2018 · 1 comment
Labels
Suggestion An idea for TypeScript

Comments

@ghost
Copy link

ghost commented Jul 12, 2018

TypeScript Version: 3.0.0-dev.20180711

Code

/**
 * @template U
 * @typedef {number} T
 */

Expected behavior:

U marked unused.

Actual behavior:

No error.

@ghost ghost added the Suggestion An idea for TypeScript label Jul 12, 2018
@ghost ghost self-assigned this Jul 12, 2018
@mhegazy mhegazy added this to the TypeScript 3.1 milestone Jul 12, 2018
@ghost
Copy link
Author

ghost commented Jul 18, 2018

We already give the diagnostic, I just didn't see it because it only covers U and not @template. The error span will incidentally be expanded in #25748 to support the codefix deleting @template.

@ghost ghost closed this as completed Jul 18, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

1 participant