-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
--noUnusedParameters does not work good enough #9860
Comments
Change the name of p1 to start with _. Parameters with underscores are exempt from error reporting. |
Interesting hidden feature. 😆 |
This is a duplicate of #9458 |
Please see documentation at https://github.com/Microsoft/TypeScript/wiki/What%27s-new-in-TypeScript#flag-unused-declarations-with---nounusedparameters-and---nounusedlocals |
TypeScript Version: 2.0.0
Code
Expected behavior:
This should compile even with --noUnusedParameters
Actual behavior:
Fails when p1 is unused.
Since this is method signature and callside may not be possible to fix this, the compiler should only flag unused from the end.
The text was updated successfully, but these errors were encountered: