summaryrefslogtreecommitdiff
path: root/test/files/jvm/receiveWithinZero.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-02-10 23:46:39 +0000
committerPaul Phillips <paulp@improving.org>2009-02-10 23:46:39 +0000
commit64af689e6659ab170826508f37720ee6e54386fa (patch)
tree0e2e5100426d23f2a734a97863c4eadcc77c38d3 /test/files/jvm/receiveWithinZero.scala
parentf4720669d6b4946653b5b419d85f5ec5a1e95bad (diff)
downloadscala-64af689e6659ab170826508f37720ee6e54386fa.tar.gz
scala-64af689e6659ab170826508f37720ee6e54386fa.tar.bz2
scala-64af689e6659ab170826508f37720ee6e54386fa.zip
moved most of the passing tests from pending to...
moved most of the passing tests from pending to files ; reunited inner.scala with inner.check
Diffstat (limited to 'test/files/jvm/receiveWithinZero.scala')
-rw-r--r--test/files/jvm/receiveWithinZero.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/files/jvm/receiveWithinZero.scala b/test/files/jvm/receiveWithinZero.scala
new file mode 100644
index 0000000000..315dd9c86a
--- /dev/null
+++ b/test/files/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()
+ }
+}