aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/pos/typers.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/pos/typers.scala b/tests/pos/typers.scala
index dbbee3d74..dd08bab07 100644
--- a/tests/pos/typers.scala
+++ b/tests/pos/typers.scala
@@ -3,6 +3,10 @@ package test
import annotation.{tailrec, switch}
object typers {
+
+ def fun(x: Int): Int = x + 1
+
+ val foo = fun(_)
class List[+T] {
def :: (x: T) = new :: (x, this)