From e512d1aead7afdca8748cfaced3d707a23d528c3 Mon Sep 17 00:00:00 2001 From: Josh Suereth Date: Tue, 21 Aug 2012 21:53:53 -0400 Subject: Fix stupid logic inversion of try-catch --- test/files/run/try-catch-unify.check | 1 + test/files/run/try-catch-unify.scala | 1 + 2 files changed, 2 insertions(+) (limited to 'test/files') diff --git a/test/files/run/try-catch-unify.check b/test/files/run/try-catch-unify.check index b1de2bfa74..67a8c64a33 100644 --- a/test/files/run/try-catch-unify.check +++ b/test/files/run/try-catch-unify.check @@ -1,3 +1,4 @@ Failure(java.lang.NumberFormatException: For input string: "Hi") Success(5.0) O NOES +Failure(java.lang.NumberFormatException: For input string: "Hi") diff --git a/test/files/run/try-catch-unify.scala b/test/files/run/try-catch-unify.scala index 0d819ab957..8cb14d060e 100644 --- a/test/files/run/try-catch-unify.scala +++ b/test/files/run/try-catch-unify.scala @@ -11,5 +11,6 @@ object Test { } catch { case t => println(t.getMessage) } + println(nonFatalCatch withTry ("Hi".toDouble)) } } -- cgit v1.2.3