diff options
Diffstat (limited to 'test/files/jvm')
-rw-r--r-- | test/files/jvm/t3838.check | 1 | ||||
-rw-r--r-- | test/files/jvm/t3838.scala | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/test/files/jvm/t3838.check b/test/files/jvm/t3838.check new file mode 100644 index 0000000000..154227a350 --- /dev/null +++ b/test/files/jvm/t3838.check @@ -0,0 +1 @@ +caught java.lang.RuntimeException: unhandled timeout diff --git a/test/files/jvm/t3838.scala b/test/files/jvm/t3838.scala new file mode 100644 index 0000000000..ba8f15fc31 --- /dev/null +++ b/test/files/jvm/t3838.scala @@ -0,0 +1,15 @@ +import scala.actors.Actor._ + +object Test { + def main(args: Array[String]) { + actor { + try { + receiveWithin(1) { + case str: String => println(str) + } + } catch { + case e: Exception => println("caught "+e) + } + } + } +} |