summaryrefslogtreecommitdiff
path: root/test/files/jvm/t1948.scala
blob: fc1fedac1f699522a536c21275d48be259a5e79a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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) }
  }

}