summaryrefslogtreecommitdiff
path: root/test/files/run/try-catch-unify.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/try-catch-unify.scala')
-rw-r--r--test/files/run/try-catch-unify.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/try-catch-unify.scala b/test/files/run/try-catch-unify.scala
index 8cb14d060e..151e549e5f 100644
--- a/test/files/run/try-catch-unify.scala
+++ b/test/files/run/try-catch-unify.scala
@@ -9,7 +9,7 @@ object Test {
try {
catching(classOf[NumberFormatException]) withTry (sys.error("O NOES"))
} catch {
- case t => println(t.getMessage)
+ case t: Throwable => println(t.getMessage)
}
println(nonFatalCatch withTry ("Hi".toDouble))
}