From 76228e8448e7ccec9beb9e26a977d0eb141d7c35 Mon Sep 17 00:00:00 2001 From: Philipp Haller Date: Thu, 2 Jul 2009 19:49:56 +0000 Subject: Added test for #1948. --- test/files/jvm/t1948.check | 0 test/files/jvm/t1948.scala | 12 ++++++++++++ 2 files changed, 12 insertions(+) create mode 100644 test/files/jvm/t1948.check create mode 100644 test/files/jvm/t1948.scala (limited to 'test/files/jvm') diff --git a/test/files/jvm/t1948.check b/test/files/jvm/t1948.check new file mode 100644 index 0000000000..e69de29bb2 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) } + } + +} -- cgit v1.2.3