diff options
Diffstat (limited to 'test/files/jvm/t3838.scala')
-rw-r--r-- | test/files/jvm/t3838.scala | 15 |
1 files changed, 15 insertions, 0 deletions
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) + } + } + } +} |