diff options
Diffstat (limited to 'tests/untried/pos/pmbug.scala')
-rw-r--r-- | tests/untried/pos/pmbug.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/untried/pos/pmbug.scala b/tests/untried/pos/pmbug.scala new file mode 100644 index 000000000..7d94e7a8b --- /dev/null +++ b/tests/untried/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) + } + +} |