diff options
Diffstat (limited to 'test/files/run/virtpatmat_apply.scala')
-rw-r--r-- | test/files/run/virtpatmat_apply.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/run/virtpatmat_apply.scala b/test/files/run/virtpatmat_apply.scala new file mode 100644 index 0000000000..b8776f4afb --- /dev/null +++ b/test/files/run/virtpatmat_apply.scala @@ -0,0 +1,7 @@ +object Test extends App { + List(1, 2, 3) match { + case Nil => println("FAIL") + case x :: y :: xs if xs.length == 2 => println("FAIL") + case x :: y :: xs if xs.length == 1 => println("OK "+ y) + } +}
\ No newline at end of file |