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
Scala version: 2.13.9
Upgrading from Scala 2.13.8 to 2.13.9 leads to code incorrectly identified as "non used".
I didn't set up a reproduction repo yet but could provide one later if needed.
My current reproduction code is in test scope:
trait SomeTrait extends Matchers { var something: SomeCaseClass = _ def foo() = { something.x mustEqual true } }
And the error message (warnings raised as errors):
[error] ....scala:16:7: parameter value something_= in variable something is never used [error] var something: SomeCaseClass = _
This variable is definitely used, there's no reason to see it as not used.
Also the error message is a bit weird with this appended underscore, isn't it? 🤔
The text was updated successfully, but these errors were encountered:
#12646
Sorry, something went wrong.
Thanks @He-Pin , I hadn't see the duplicate!
No branches or pull requests
Reproduction steps
Scala version: 2.13.9
Upgrading from Scala 2.13.8 to 2.13.9 leads to code incorrectly identified as "non used".
I didn't set up a reproduction repo yet but could provide one later if needed.
My current reproduction code is in test scope:
And the error message (warnings raised as errors):
Problem
This variable is definitely used, there's no reason to see it as not used.
Also the error message is a bit weird with this appended underscore, isn't it? 🤔
The text was updated successfully, but these errors were encountered: