From 9066ffa93eee761b2bfdb0953d9fe695402de425 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Tue, 19 Oct 2010 22:55:04 +0000 Subject: 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. --- test/files/run/bug3699.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/files/run/bug3699.scala (limited to 'test') 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 -- cgit v1.2.3