summaryrefslogtreecommitdiff
path: root/test/files/neg/bug1878.scala
blob: ca76df082bdf910c93799325dd3f361daee99668 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
object Test extends Application {
  // 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))
}