diff options
Diffstat (limited to 'test/files/jvm')
-rw-r--r-- | test/files/jvm/t1948.check | 0 | ||||
-rw-r--r-- | test/files/jvm/t1948.scala | 12 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/files/jvm/t1948.check b/test/files/jvm/t1948.check new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/test/files/jvm/t1948.check diff --git a/test/files/jvm/t1948.scala b/test/files/jvm/t1948.scala new file mode 100644 index 0000000000..fc1fedac1f --- /dev/null +++ b/test/files/jvm/t1948.scala @@ -0,0 +1,12 @@ +import scala.actors._ +import scala.actors.Actor._ + +object Test { + + def main (args: Array[String]) { + val actors = (1 to 1000).toList map { x => actor { loop { react { + case x: Array[Int] => reply ("OK"); exit }}}} + actors foreach { x => x !? new Array[Int] (1000000) } + } + +} |