aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t3972.scala
blob: 65ef43f84deca3d482d929d42dbe57a465ba2541 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
object CompilerCrash {
  def main(args: Array[String]): Unit = {
    args match {
      case Array("a", a : _*) => { } // The code compiles fine if this line is commented out or "@ _*" is deleted or this line is swapped for the next line
      case Array("b") => { } // The code compiles fine if this line is commented out
      case Array("c", c) => {
        0 // The code compiles fine if this line is commented out
      }
    }
  }
}