diff options
author | Philipp Haller <hallerp@gmail.com> | 2009-07-02 19:49:56 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2009-07-02 19:49:56 +0000 |
commit | 76228e8448e7ccec9beb9e26a977d0eb141d7c35 (patch) | |
tree | a4f3e6123e15478c5bbee33616a5079d9ed9c20f /test/files/jvm | |
parent | c044b2e8c9181507d391c59219d240353219ebef (diff) | |
download | scala-76228e8448e7ccec9beb9e26a977d0eb141d7c35.tar.gz scala-76228e8448e7ccec9beb9e26a977d0eb141d7c35.tar.bz2 scala-76228e8448e7ccec9beb9e26a977d0eb141d7c35.zip |
Added test for #1948.
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) } + } + +} |