|
Scala example source code file (bug560bis.scala)
The Scala bug560bis.scala source codeobject 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) } } Other Scala examples (source code examples)Here is a short list of links related to this Scala bug560bis.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.