diff options
Diffstat (limited to 'test/files/jvm/t3102.scala')
-rw-r--r-- | test/files/jvm/t3102.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/jvm/t3102.scala b/test/files/jvm/t3102.scala index ea3e720eca..fbcf2e60e6 100644 --- a/test/files/jvm/t3102.scala +++ b/test/files/jvm/t3102.scala @@ -4,13 +4,19 @@ import Actor._ object Test { def main(args: Array[String]) { val a = actor { + try { react { case 'hello => reply(42) } + } catch { + case e: Throwable if !e.isInstanceOf[scala.util.control.ControlThrowable] => + e.printStackTrace() + } } val b = actor { + try { self.trapExit = true val ft = a !! 'hello println(ft()) @@ -21,6 +27,10 @@ object Test { case any => println(any) } + } catch { + case e: Throwable if !e.isInstanceOf[scala.util.control.ControlThrowable] => + e.printStackTrace() + } } } } |