You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since x is used in def value the parameter should not be reported as unused. This only happens when def causesIssue is present, so I'm guessing that this is related to how extension methods are desugared and the unused warning is because that particular method doesn't use x.
The text was updated successfully, but these errors were encountered:
SethTisue
changed the title
False positive with -Wunused:params and extension
False positive unused warning with -Wunused:params and extensionMar 27, 2023
Compiler version
3.3.0-RC3
Minimized code
https://scastie.scala-lang.org/mrdziuban/nBgViUmQQkiecLQSHAe71w/12
Output
Expectation
Since
x
is used indef value
the parameter should not be reported as unused. This only happens whendef causesIssue
is present, so I'm guessing that this is related to howextension
methods are desugared and the unused warning is because that particular method doesn't usex
.The text was updated successfully, but these errors were encountered: