summaryrefslogtreecommitdiff
path: root/test/files/run/bug3699.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-10-19 22:55:04 +0000
committerPaul Phillips <paulp@improving.org>2010-10-19 22:55:04 +0000
commit9066ffa93eee761b2bfdb0953d9fe695402de425 (patch)
tree2431d1cea8838e76cb80e3634deead4c124d5a03 /test/files/run/bug3699.scala
parent9bd74024a120aca0c777ee3917084776875daa69 (diff)
downloadscala-9066ffa93eee761b2bfdb0953d9fe695402de425.tar.gz
scala-9066ffa93eee761b2bfdb0953d9fe695402de425.tar.bz2
scala-9066ffa93eee761b2bfdb0953d9fe695402de425.zip
As pointed out to me by plocinic, the pattern m...
As pointed out to me by plocinic, the pattern matcher has been indiscriminately clearing the MUTABLE flag on synthetic vals because it is signalling itself with that bit and it didn't think anyone else would ever notice. Someone did. Closes #3699, review by plocinic.
Diffstat (limited to 'test/files/run/bug3699.scala')
-rw-r--r--test/files/run/bug3699.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/bug3699.scala b/test/files/run/bug3699.scala
new file mode 100644
index 0000000000..0475353887
--- /dev/null
+++ b/test/files/run/bug3699.scala
@@ -0,0 +1,11 @@
+object Test {
+ def act: Int => Int = {
+ case _ =>
+ lazy val (a, b) = (3,9)
+ a
+ b
+ }
+ def main(args: Array[String]) = {
+ assert(act(1) == 9)
+ }
+} \ No newline at end of file