summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2006-02-17 15:35:10 +0000
committerMartin Odersky <odersky@gmail.com>2006-02-17 15:35:10 +0000
commit2aafa8639fcd0c0e15682bd47cb5dbedbfa6a740 (patch)
tree516001e21a12b97250caae5e86f3c459e97b3d41 /test
parent6b1d01b1b28d965586a54c1f4c1fe3adfc36545b (diff)
downloadscala-2aafa8639fcd0c0e15682bd47cb5dbedbfa6a740.tar.gz
scala-2aafa8639fcd0c0e15682bd47cb5dbedbfa6a740.tar.bz2
scala-2aafa8639fcd0c0e15682bd47cb5dbedbfa6a740.zip
bug fixes: 532, 531, 530
Diffstat (limited to 'test')
-rw-r--r--test/files/pos/bug531.scala10
-rw-r--r--test/files/pos/bug532.scala2
2 files changed, 11 insertions, 1 deletions
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
}
()
}