diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2010-08-09 13:37:07 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2010-08-09 13:37:07 +0000 |
commit | e5efbddf19bfeac109997d0186dc143bbc7e63c3 (patch) | |
tree | 19a7d94ab03504c7cd7966db4f40f0fc73a35c22 /test/files | |
parent | 5a50d83a33f1c3b8a7ad3e71ad0beb1e7533489b (diff) | |
download | scala-e5efbddf19bfeac109997d0186dc143bbc7e63c3.tar.gz scala-e5efbddf19bfeac109997d0186dc143bbc7e63c3.tar.bz2 scala-e5efbddf19bfeac109997d0186dc143bbc7e63c3.zip |
close #7226.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/t3726.check | 2 | ||||
-rw-r--r-- | test/files/run/t3726.scala | 8 |
2 files changed, 10 insertions, 0 deletions
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 })) +} |