summaryrefslogblamecommitdiff
path: root/test/files/pos/t3972.scala
blob: 5dfc10fcef2799cc8a8c2e142d27466e11089654 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11



                                                                                                                                                           
                                                                                    





                                                                 
object CompilerCrash {
  def main(args: Array[String]) {
    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
      }
    }
  }
}