summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorJosh Suereth <Joshua.Suereth@gmail.com>2012-05-18 05:34:32 -0700
committerJosh Suereth <Joshua.Suereth@gmail.com>2012-05-18 05:34:32 -0700
commit34fa132820ddef5d789dd6efd00dc2f3a1d27a63 (patch)
tree0539251e5b18b1f47089d16c6ecfe0e245e890f9 /test/files/run
parentef7708812fac32ca0c2a05330222a6b0806c9054 (diff)
parent9e248099f7d9d268b88856b2b3e2adfca3de93d9 (diff)
downloadscala-34fa132820ddef5d789dd6efd00dc2f3a1d27a63.tar.gz
scala-34fa132820ddef5d789dd6efd00dc2f3a1d27a63.tar.bz2
scala-34fa132820ddef5d789dd6efd00dc2f3a1d27a63.zip
Merge pull request #567 from lrytz/wip/t3488
Test case for SI-3844 - fixed by #virtpatmat @adriaanm
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/t3488.check2
-rw-r--r--test/files/run/t3488.scala6
2 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/t3488.check b/test/files/run/t3488.check
new file mode 100644
index 0000000000..0d66ea1aee
--- /dev/null
+++ b/test/files/run/t3488.check
@@ -0,0 +1,2 @@
+0
+1
diff --git a/test/files/run/t3488.scala b/test/files/run/t3488.scala
new file mode 100644
index 0000000000..20a1400dce
--- /dev/null
+++ b/test/files/run/t3488.scala
@@ -0,0 +1,6 @@
+object Test extends App {
+ def foo(p: => Unit)(x:Int = 0) = x
+
+ println(foo { val List(_*)=List(0); 1 } ())
+ println(foo { val List(_*)=List(0); 1 } (1))
+}