PageRenderTime 45ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/tickets/3530/a.scala

http://github.com/paulp/scala-issues-dev
Scala | 9 lines | 9 code | 0 blank | 0 comment | 0 complexity | 769e5034018d472252faa1020b0cbf54 MD5 | raw file
  1. object ListMatchTest {
  2. def main(args: Array[String]) {
  3. val list = List(1,2,3)
  4. list match {
  5. case List(_, _) => println("List with two elements")
  6. case List(_*) => println("Some List")
  7. }
  8. }
  9. }