diff options
Diffstat (limited to 'tests/patmat/virtpatmat_apply.scala')
-rw-r--r-- | tests/patmat/virtpatmat_apply.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/patmat/virtpatmat_apply.scala b/tests/patmat/virtpatmat_apply.scala new file mode 100644 index 000000000..646d15f90 --- /dev/null +++ b/tests/patmat/virtpatmat_apply.scala @@ -0,0 +1,7 @@ +object Test { + 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) + } +} |