diff options
Diffstat (limited to 'test/pos/lambda.scala')
-rw-r--r-- | test/pos/lambda.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/pos/lambda.scala b/test/pos/lambda.scala new file mode 100644 index 0000000000..7e687df4ef --- /dev/null +++ b/test/pos/lambda.scala @@ -0,0 +1,8 @@ +module test { + + def apply[a,b](f: a => b): a => b = x: a => f(x); + + def twice[a](f: a => a): a => a = x: a => f(f(x)); + + def main = apply@[Int,Int](twice@[Int](x: Int => x))(1); +}
\ No newline at end of file |