Describe the bug
I'm using @nowarn to silence warnings when the returned value of an expression is discarded.
With scala 2.13.15 and scoverage 2.2.1, I get the @nowarn annotation does not suppress any warnings only when coverage is enabled.
You can see the build here where it only fails when coverage is on (fatal warnings is enabled)
Expected behavior
when enabling coverage, I expect the compiler to report the same warnings as when coverage is disabled
What build tool are you using?
sbt
Version of scoverage
v2.2.1
Describe the bug
I'm using
@nowarnto silence warnings when the returned value of an expression is discarded.With scala
2.13.15and scoverage2.2.1, I get the@nowarn annotation does not suppress any warningsonly when coverage is enabled.You can see the build here where it only fails when coverage is on (fatal warnings is enabled)
Expected behavior
when enabling coverage, I expect the compiler to report the same warnings as when coverage is disabled
What build tool are you using?
sbt
Version of scoverage
v2.2.1