From e5efbddf19bfeac109997d0186dc143bbc7e63c3 Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Mon, 9 Aug 2010 13:37:07 +0000 Subject: close #7226. --- test/files/run/t3726.check | 2 ++ test/files/run/t3726.scala | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 test/files/run/t3726.check create mode 100644 test/files/run/t3726.scala (limited to 'test') diff --git a/test/files/run/t3726.check b/test/files/run/t3726.check new file mode 100644 index 0000000000..7a5775bf34 --- /dev/null +++ b/test/files/run/t3726.check @@ -0,0 +1,2 @@ +hi there +5 \ No newline at end of file diff --git a/test/files/run/t3726.scala b/test/files/run/t3726.scala new file mode 100644 index 0000000000..5ceed5416e --- /dev/null +++ b/test/files/run/t3726.scala @@ -0,0 +1,8 @@ +object Test extends Application { + def test(f: () => Int) = { + val x = f() + 5 + } + + println(test(() => { println("hi there"); 0 })) +} -- cgit v1.2.3