From ca9f4fbb7b1212cfcde866ee95957afc6d157943 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Fri, 11 Jul 2003 13:02:40 +0000 Subject: *** empty log message *** --- test/pos/exceptions.scala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/pos/exceptions.scala') diff --git a/test/pos/exceptions.scala b/test/pos/exceptions.scala index c47b0e4785..f28a10d367 100644 --- a/test/pos/exceptions.scala +++ b/test/pos/exceptions.scala @@ -4,7 +4,7 @@ object test { //def error[a](x: String):a = new java.lang.RuntimeException(x) throw; - def main(): Unit = { + def main(args: Array[String]): Unit = { try { try { System.out.println("hi!"); @@ -12,11 +12,10 @@ object test { } finally { System.out.println("ho!") } - } except { + } catch { case ex: IOException => System.out.println("io exception!"); case ex => System.out.println(ex); } } - main(); } -- cgit v1.2.3