From 2aafa8639fcd0c0e15682bd47cb5dbedbfa6a740 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Fri, 17 Feb 2006 15:35:10 +0000 Subject: bug fixes: 532, 531, 530 --- test/files/pos/bug531.scala | 10 ++++++++++ test/files/pos/bug532.scala | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 test/files/pos/bug531.scala (limited to 'test') diff --git a/test/files/pos/bug531.scala b/test/files/pos/bug531.scala new file mode 100644 index 0000000000..858a46d374 --- /dev/null +++ b/test/files/pos/bug531.scala @@ -0,0 +1,10 @@ +object Test extends Application { + import scala.reflect._; + def titi = { + var truc = 0 + val tata: TypedCode[()=>Unit] = () => { + truc = 6 + } + () + } +} diff --git a/test/files/pos/bug532.scala b/test/files/pos/bug532.scala index 82da9c817f..bd6a4cae93 100644 --- a/test/files/pos/bug532.scala +++ b/test/files/pos/bug532.scala @@ -3,7 +3,7 @@ object Test extends Application { def titi: Unit = { var truc = 0 val tata: TypedCode[()=>Unit] = () => { - truc = 6 + truc = truc + 6 } () } -- cgit v1.2.3