-
Notifications
You must be signed in to change notification settings - Fork 230
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
issue diagnostic for a templated model with a template parameter that is not used. #5494
base: main
Are you sure you want to change the base?
Conversation
You can try these changes here
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure that we want to do this
"unused-template-parameter": { | ||
severity: "hint", | ||
messages: { | ||
default: paramMessage`Template may only specify used parameter, and '${"parameterName"}' does not exist in type '${"type"}'.`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default: paramMessage`Template may only specify used parameter, and '${"parameterName"}' does not exist in type '${"type"}'.`, | |
default: paramMessage`Templates should use all specified parameters, and parameter '${"parameterName"}' does not exist in type '${"type"}'. Consider removing this parameter.`, |
@@ -135,6 +135,7 @@ alias integral = int32 | int64 | uint32 | uint64 | boolean; | |||
* @template Key the key type (any integral type or string) | |||
* @template Value the value type (any type other than another map) | |||
*/ | |||
#suppress "unused-template-parameter" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a suppression here if this is not a warning? What is the impact of an unsuppressed hint
diagnostic on compilation?
Fix #181
Fix #5488