diff options
Diffstat (limited to 'tests/pending/run/try-catch-unify.scala')
-rw-r--r-- | tests/pending/run/try-catch-unify.scala | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/pending/run/try-catch-unify.scala b/tests/pending/run/try-catch-unify.scala deleted file mode 100644 index 151e549e5..000000000 --- a/tests/pending/run/try-catch-unify.scala +++ /dev/null @@ -1,16 +0,0 @@ -import util._ - -import control.Exception._ - -object Test { - def main(args: Array[String]): Unit = { - println(catching(classOf[NumberFormatException]) withTry ("Hi".toDouble)) - println(catching(classOf[NumberFormatException]) withTry ("5".toDouble)) - try { - catching(classOf[NumberFormatException]) withTry (sys.error("O NOES")) - } catch { - case t: Throwable => println(t.getMessage) - } - println(nonFatalCatch withTry ("Hi".toDouble)) - } -} |