We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TypeScript Version: 2.8.0-dev.20180213
Search Terms:
Code
interface A<T> { T: T } // ERROR // ^^^ TS6133: 'T' is declared but its value is never read. type B<T> = { T: T }; // OK
Expected behavior: No errors.
Actual behavior: TSC thinks the generic type T is unused in interface A, but it is used. Meanwhile the equivalent type B gets it right.
T
interface A
type B
The text was updated successfully, but these errors were encountered:
It looks like this actually does work in [email protected] -- was broken in [email protected] though.
[email protected]
Sorry, something went wrong.
@Andy-MS I'm definitely repro'ing this in typescript@next. Can you take another look please?
typescript@next
Oh, sorry, this was changed to --noUnusedParameters instead of --noUnusedLocals (#21167) so the error went away for me.
--noUnusedParameters
--noUnusedLocals
No branches or pull requests
TypeScript Version: 2.8.0-dev.20180213
Search Terms:
Code
Expected behavior:
No errors.
Actual behavior:
TSC thinks the generic type
T
is unused ininterface A
, but it is used. Meanwhile the equivalenttype B
gets it right.The text was updated successfully, but these errors were encountered: