summaryrefslogtreecommitdiff
path: root/test/files/neg/t1878.scala
blob: 5278fbb7bd2ec8f8da169147e846b6412eeabbfc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
object Test extends App {
  // illegal 
  val err1 = "" match { case Seq(f @ _*, ',') => f }
  
  // no error
  val List(List(arg1, _*), _) = List(List(1,2,3), List(4,5,6))
  
  // illegal
  val List(List(_*, arg2), _) = List(List(1,2,3), List(4,5,6))
  
  // illegal - bug #1764
  null match {
    case <p> { _* } </p> =>
  }
}