summaryrefslogtreecommitdiff
path: root/test/files/jvm/t1652.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/jvm/t1652.scala')
-rw-r--r--test/files/jvm/t1652.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/jvm/t1652.scala b/test/files/jvm/t1652.scala
new file mode 100644
index 0000000000..725a9f93db
--- /dev/null
+++ b/test/files/jvm/t1652.scala
@@ -0,0 +1,11 @@
+import scala.actors.Actor
+object Test extends Application {
+ Actor.actor {
+ Actor.reactWithin(1) { case x => println("OK1") }
+ }
+ Thread.sleep(500) // Wait for scheduler to poll ActorGC
+ Actor.actor {
+ Actor.reactWithin(1) { case x => println("OK2") }
+ }
+ Thread.sleep(500)
+}