diff options
author | Paul Phillips <paulp@improving.org> | 2013-05-26 05:35:36 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-05-26 05:35:36 -0700 |
commit | 970c245a3e96cb52167428bef80d7e772876bd12 (patch) | |
tree | 88dcc988c63ee88c27a8c392939500697d629826 /test/files/run/exceptions-2.scala | |
parent | 3df072e668b4a3011e990dd2e63a99ebd5189af5 (diff) | |
parent | e037c9a3c12e21104a5aaf15d2bf27779cc3fd12 (diff) | |
download | scala-970c245a3e96cb52167428bef80d7e772876bd12.tar.gz scala-970c245a3e96cb52167428bef80d7e772876bd12.tar.bz2 scala-970c245a3e96cb52167428bef80d7e772876bd12.zip |
Merge pull request #2591 from som-snytt/topic/partest-inches
SI-7003 Partest redirects stderr to log file
Diffstat (limited to 'test/files/run/exceptions-2.scala')
-rw-r--r-- | test/files/run/exceptions-2.scala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/files/run/exceptions-2.scala b/test/files/run/exceptions-2.scala index f5bbcca210..8d755c3809 100644 --- a/test/files/run/exceptions-2.scala +++ b/test/files/run/exceptions-2.scala @@ -42,7 +42,7 @@ object NoExcep { def method4 = try { Console.println(".."); } catch { - case _ => sys.error(".."); + case _: Throwable => sys.error(".."); } } @@ -136,7 +136,7 @@ object Test { try { sys.error("a"); } catch { - case _ => Console.println("Silently ignore exception in finally"); + case _: Throwable => Console.println("Silently ignore exception in finally"); } } } @@ -146,7 +146,7 @@ object Test { } finally { val fin = "Abc"; Console.println(fin); - }; + } def tryAndValInFinally: Unit = try { @@ -154,8 +154,8 @@ object Test { val fin = "Abc"; try { Console.println(fin); - } catch { case _ => () } - }; + } catch { case _: Throwable => () } + } def returnInBody: Unit = try { try { @@ -249,7 +249,7 @@ object Test { def execute(f: => Unit) = try { f; } catch { - case _ => (); + case _: Throwable => () } |