diff options
Diffstat (limited to 'test-nsc/files/pos/pmbug.scala')
-rwxr-xr-x | test-nsc/files/pos/pmbug.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test-nsc/files/pos/pmbug.scala b/test-nsc/files/pos/pmbug.scala new file mode 100755 index 0000000000..7d94e7a8bd --- /dev/null +++ b/test-nsc/files/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) + } + +} |