summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@epfl.ch>2010-09-01 14:17:56 +0000
committerLukas Rytz <lukas.rytz@epfl.ch>2010-09-01 14:17:56 +0000
commitcc81e9fea64083aaf26cdf6eae1fc3510e3aedaf (patch)
tree0fd36af9c6508462b361abdbd84f05bac5418b12 /test/files
parentd7cc24bf7857ffe9e8dd51e2ac7f6254013c03b6 (diff)
downloadscala-cc81e9fea64083aaf26cdf6eae1fc3510e3aedaf.tar.gz
scala-cc81e9fea64083aaf26cdf6eae1fc3510e3aedaf.tar.bz2
scala-cc81e9fea64083aaf26cdf6eae1fc3510e3aedaf.zip
Merged revisions 22473,22711-22713 via svnmerge...
Merged revisions 22473,22711-22713 via svnmerge from https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r22473 | extempore | 2010-07-02 18:26:05 +0200 (Fri, 02 Jul 2010) | 1 line Option gets an empty factory like the collections. Closes #3414, no review. ........ r22711 | rytz | 2010-08-09 15:37:04 +0200 (Mon, 09 Aug 2010) | 1 line close #3709. no review. ........ r22712 | rytz | 2010-08-09 15:37:07 +0200 (Mon, 09 Aug 2010) | 1 line close #7226. Apply trees are never considered stable (why were they? applications to field getters are Select trees, not Apply). review by odersky. ........ r22713 | rytz | 2010-08-09 15:37:11 +0200 (Mon, 09 Aug 2010) | 1 line update doc of option. close #3737. ........
Diffstat (limited to 'test/files')
-rw-r--r--test/files/run/t3726.check2
-rw-r--r--test/files/run/t3726.scala8
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 }))
+}