diff options
author | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-05-18 05:34:32 -0700 |
---|---|---|
committer | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-05-18 05:34:32 -0700 |
commit | 34fa132820ddef5d789dd6efd00dc2f3a1d27a63 (patch) | |
tree | 0539251e5b18b1f47089d16c6ecfe0e245e890f9 /test/files | |
parent | ef7708812fac32ca0c2a05330222a6b0806c9054 (diff) | |
parent | 9e248099f7d9d268b88856b2b3e2adfca3de93d9 (diff) | |
download | scala-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')
-rw-r--r-- | test/files/run/t3488.check | 2 | ||||
-rw-r--r-- | test/files/run/t3488.scala | 6 |
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)) +} |