Skip to content

Commit

Permalink
Amend
Browse files Browse the repository at this point in the history
  • Loading branch information
mccartney committed Oct 14, 2020
1 parent 37a6ca7 commit d337857
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ class UnusedMethodParameterTest213 extends InspectionTest {
"should not report warning" - {
"for unused parameters if they are annotated with @unused (#340)" in {
val code =
"""import scala.annotation.unused
class Test {
def foo(@unused a:String, b: Int): Unit {
println(b)
}
} """.stripMargin
"""| import scala.annotation.unused
| class Test {
| def foo(@unused a:String, b: Int): Unit = {
| println(b)
| }
| } """.stripMargin

compileCodeSnippet(code)
compiler.scapegoat.feedback.warnings.size shouldBe 1
compiler.scapegoat.feedback.warns.size shouldBe 1
compiler.scapegoat.feedback.warnings.size shouldBe 0
compiler.scapegoat.feedback.warns.size shouldBe 0
}
}
}
Expand Down

0 comments on commit d337857

Please sign in to comment.