diff options
Diffstat (limited to 'test/files/run/t5535.scala')
-rw-r--r-- | test/files/run/t5535.scala | 10 |
1 files changed, 10 insertions, 0 deletions
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)) + """ +} |