summaryrefslogtreecommitdiff
path: root/test/files/jvm/t560bis.scala
blob: 21eb8dde28b3458b2db1083b9a21b1121466e6a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
object Test {
import scala.xml._;

  def bar(args: Seq[String]) = args match {
    case Seq(a,b,c,d @ _*) => Console.println("cool!")
    case _ => Console.println("bah")
  }
  def foo(args: List[String]) = 
    Elem(null,"bla",Null, TopScope, minimizeEmpty = true, (args map {x => Text(x)}):_*) match {
      case Elem(_,_,_,_,Text("1"),_*) =>
        Console.println("cool!")
      case _ =>
        Console.println("bah")
    }
  
  def main(args: Array[String]) = {
    val li = List("1","2","3","4")
    bar(li)
    foo(li)
  }
}