summaryrefslogtreecommitdiff
path: root/test/pending/jvm/reactWithinZero.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/jvm/reactWithinZero.scala')
-rw-r--r--test/pending/jvm/reactWithinZero.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/pending/jvm/reactWithinZero.scala b/test/pending/jvm/reactWithinZero.scala
new file mode 100644
index 0000000000..0786ce271d
--- /dev/null
+++ b/test/pending/jvm/reactWithinZero.scala
@@ -0,0 +1,18 @@
+import scala.actors.{Actor, TIMEOUT}
+
+class A extends Actor {
+ def act() = reactWithin(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()
+ }
+}