diff options
author | Philipp Haller <hallerp@gmail.com> | 2009-01-30 15:46:49 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2009-01-30 15:46:49 +0000 |
commit | c9365b9f14a7a91c9223e0b456b5ecbd46bf1e5a (patch) | |
tree | f62fb855c2f819b0b2ab7ffd542a301afe2442c0 /test/pending/jvm/receiveWithinZero.scala | |
parent | 8c52d2ef0a298780bc1c1c4f5465cc74017c9243 (diff) | |
download | scala-c9365b9f14a7a91c9223e0b456b5ecbd46bf1e5a.tar.gz scala-c9365b9f14a7a91c9223e0b456b5ecbd46bf1e5a.tar.bz2 scala-c9365b9f14a7a91c9223e0b456b5ecbd46bf1e5a.zip |
Moved react/receiveWithinZero tests to pending ...
Moved react/receiveWithinZero tests to pending for now.
Diffstat (limited to 'test/pending/jvm/receiveWithinZero.scala')
-rw-r--r-- | test/pending/jvm/receiveWithinZero.scala | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/pending/jvm/receiveWithinZero.scala b/test/pending/jvm/receiveWithinZero.scala new file mode 100644 index 0000000000..315dd9c86a --- /dev/null +++ b/test/pending/jvm/receiveWithinZero.scala @@ -0,0 +1,18 @@ +import scala.actors.{Actor, TIMEOUT} + +class A extends Actor { + def act() = receiveWithin(0) { + case TIMEOUT => + println("TIMEOUT") + reply('ack) + act() + case x => println(x) + } +} + +object Test { + def main(args: Array[String]): Unit = { + val a = new A + a.start() + } +} |