aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/pos/pmbug.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/pos/pmbug.scala')
-rw-r--r--tests/pending/pos/pmbug.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pending/pos/pmbug.scala b/tests/pending/pos/pmbug.scala
new file mode 100644
index 000000000..7d94e7a8b
--- /dev/null
+++ b/tests/pending/pos/pmbug.scala
@@ -0,0 +1,8 @@
+object Test {
+
+ def flatten[a](l: List[List[a]]): List[a] = l match {
+ case Nil => Nil
+ case head :: tail => head ::: flatten(tail)
+ }
+
+}