summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/files/pos/bug566.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/pos/bug566.scala b/test/files/pos/bug566.scala
new file mode 100644
index 0000000000..6a2a0a3621
--- /dev/null
+++ b/test/files/pos/bug566.scala
@@ -0,0 +1,4 @@
+object test {
+ def foo[a](ys: List[a]): List[a] =
+ return ys.head :: ys.tail
+}