From df50e05006b43b007c2587549030d24b5c154398 Mon Sep 17 00:00:00 2001 From: Gilles Dubochet Date: Fri, 16 Dec 2005 18:29:42 +0000 Subject: 'test-nsc' has been moved to 'test'. --- test/files/pos/lambda.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/files/pos/lambda.scala (limited to 'test/files/pos/lambda.scala') diff --git a/test/files/pos/lambda.scala b/test/files/pos/lambda.scala new file mode 100644 index 0000000000..187b3f9783 --- /dev/null +++ b/test/files/pos/lambda.scala @@ -0,0 +1,8 @@ +object 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 -- cgit v1.2.3