summaryrefslogtreecommitdiff
path: root/test/files/neg/warn-unused-patvars.check
blob: 002f7a07ca45efd8cd60a9cd996908fed86ef569 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
warn-unused-patvars.scala:7: warning: private val x in trait Boundings is never used
  private val x = 42                      // warn, sanity check
              ^
warn-unused-patvars.scala:26: warning: local val x in method v is never used
    val D(x) = d                          // warn, fixme
         ^
warn-unused-patvars.scala:30: warning: local val x in method w is never used
    val D(x @ _) = d                      // warn, fixme (valdef pos is different)
         ^
error: No warnings can be incurred under -Xfatal-warnings.
three warnings found
one error found