summaryrefslogtreecommitdiff
path: root/test/files/run/virtpatmat_nested_lists.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/virtpatmat_nested_lists.scala')
-rw-r--r--test/files/run/virtpatmat_nested_lists.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/files/run/virtpatmat_nested_lists.scala b/test/files/run/virtpatmat_nested_lists.scala
new file mode 100644
index 0000000000..fef74cea15
--- /dev/null
+++ b/test/files/run/virtpatmat_nested_lists.scala
@@ -0,0 +1,3 @@
+object Test extends App {
+ List(List(1), List(2)) match { case x :: (y :: Nil) :: Nil => println(y) }
+}