diff options
author | Philipp Haller <hallerp@gmail.com> | 2009-05-31 22:03:36 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2009-05-31 22:03:36 +0000 |
commit | e0a4e468b76061840c585824f93163529dce73f6 (patch) | |
tree | 0fe41836801b56b19d5854913b2566d74c748b81 /test/pending/jvm/terminateLinked.scala | |
parent | 7aab2a8d9e6254ee30e6be338ad0ae968c2d165c (diff) | |
download | scala-e0a4e468b76061840c585824f93163529dce73f6.tar.gz scala-e0a4e468b76061840c585824f93163529dce73f6.tar.bz2 scala-e0a4e468b76061840c585824f93163529dce73f6.zip |
Moved test for offline bug fixing.
Diffstat (limited to 'test/pending/jvm/terminateLinked.scala')
-rw-r--r-- | test/pending/jvm/terminateLinked.scala | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/pending/jvm/terminateLinked.scala b/test/pending/jvm/terminateLinked.scala new file mode 100644 index 0000000000..2a3b7fb49e --- /dev/null +++ b/test/pending/jvm/terminateLinked.scala @@ -0,0 +1,24 @@ +import scala.actors.Actor +import Actor._ + +object Test { + def main(args: Array[String]) { + val a = actor { + for (_ <- 1 to 10) + receive { + case b: Actor => link(b) + } + throw new Exception + } + + for (_ <- 1 to 10) + actor { + a ! self + react { + case _ => + } + } + + println("Done") + } +} |