summaryrefslogtreecommitdiff
path: root/test/files/neg/t7623.check
blob: db368dd369338120a94a50032d3e604d8bfe385e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
t7623.scala:19: warning: A repeated case parameter or extracted sequence should be matched only by a sequence wildcard (_*).
  def f = "" match { case X(s) => }
                          ^
t7623.scala:21: warning: A repeated case parameter or extracted sequence should be matched only by a sequence wildcard (_*).
  def g = "" match { case X(s, t) => }
                          ^
t7623.scala:23: warning: A repeated case parameter or extracted sequence should be matched only by a sequence wildcard (_*).
  def h = "" match { case X(s, t, u @ _*) => }
                          ^
t7623.scala:9: warning: A repeated case parameter or extracted sequence should be matched only by a sequence wildcard (_*).
  def f = C("") match { case C(s) => }
                             ^
t7623.scala:11: warning: A repeated case parameter or extracted sequence should be matched only by a sequence wildcard (_*).
  def g = C("") match { case C(s, t) => }
                             ^
t7623.scala:13: warning: A repeated case parameter or extracted sequence should be matched only by a sequence wildcard (_*).
  def h = C("") match { case C(s, t, u @ _*) => }
                             ^
error: No warnings can be incurred under -Xfatal-warnings.
6 warnings found
one error found