From f1c6714e22e70ecba2aa595bf592b916be82deb4 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 12 Apr 2012 20:35:05 +0100 Subject: Fix for SI-5535. --- test/files/run/t5535.scala | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/files/run/t5535.scala (limited to 'test/files/run/t5535.scala') diff --git a/test/files/run/t5535.scala b/test/files/run/t5535.scala new file mode 100644 index 0000000000..7bc12f3470 --- /dev/null +++ b/test/files/run/t5535.scala @@ -0,0 +1,10 @@ +import scala.tools.partest.ReplTest + +object Test extends ReplTest { + def code = """ +def h()(i: Int) = 1 + i +println(h()(5)) +val f = h() _ +println(f(10)) + """ +} -- cgit v1.2.3