diff options
author | Paul Phillips <paulp@improving.org> | 2010-10-19 22:55:04 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-10-19 22:55:04 +0000 |
commit | 9066ffa93eee761b2bfdb0953d9fe695402de425 (patch) | |
tree | 2431d1cea8838e76cb80e3634deead4c124d5a03 /test | |
parent | 9bd74024a120aca0c777ee3917084776875daa69 (diff) | |
download | scala-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')
-rw-r--r-- | test/files/run/bug3699.scala | 11 |
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 |