diff options
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/bug560bis.check | 2 | ||||
-rw-r--r-- | test/files/run/bug560bis.scala | 21 |
2 files changed, 23 insertions, 0 deletions
diff --git a/test/files/run/bug560bis.check b/test/files/run/bug560bis.check new file mode 100644 index 0000000000..91eb4c19a2 --- /dev/null +++ b/test/files/run/bug560bis.check @@ -0,0 +1,2 @@ +cool! +cool! diff --git a/test/files/run/bug560bis.scala b/test/files/run/bug560bis.scala new file mode 100644 index 0000000000..13bf4b1ae0 --- /dev/null +++ b/test/files/run/bug560bis.scala @@ -0,0 +1,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, (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) + } +} |