We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
-Wunused:nowarn
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
3.3.0, also happens in latest 3.3.1-RC4
https://scastie.scala-lang.org/mrdziuban/r3gWMzhnQzWsGcUEtiNtbw/1
class Foo(@annotation.nowarn("msg=unused") x: Int)
@nowarn annotation does not suppress any warnings
but removing the annotation results in a warning
unused explicit parameter
There should be no warning on the nowarn annotation as it does suppress the unused explicit parameter warning.
nowarn
The text was updated successfully, but these errors were encountered:
Suppress spurious Suppression (#22383)
a377c8a
Guard against multiple registrations of nowarn on related elements. Fixes #18341
Suppress spurious Suppression (scala#22383)
e92279f
Guard against multiple registrations of nowarn on related elements. Fixes scala#18341
12a27a3
Guard against multiple registrations of nowarn on related elements. Fixes scala#18341 [Cherry-picked a377c8a][modified]
som-snytt
Successfully merging a pull request may close this issue.
Compiler version
3.3.0, also happens in latest 3.3.1-RC4
Minimized code
https://scastie.scala-lang.org/mrdziuban/r3gWMzhnQzWsGcUEtiNtbw/1
Output
@nowarn annotation does not suppress any warnings
but removing the annotation results in a warning
Expectation
There should be no warning on the
nowarn
annotation as it does suppress theunused explicit parameter
warning.The text was updated successfully, but these errors were encountered: