diff options
author | Martin Odersky <odersky@gmail.com> | 2003-07-11 13:02:40 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2003-07-11 13:02:40 +0000 |
commit | ca9f4fbb7b1212cfcde866ee95957afc6d157943 (patch) | |
tree | 20ef511d9ccb659a8d876477120994bea680e1d2 /test/pos/exceptions.scala | |
parent | 319090d57b6736033c0e635da83ff571df5bd1d0 (diff) | |
download | scala-ca9f4fbb7b1212cfcde866ee95957afc6d157943.tar.gz scala-ca9f4fbb7b1212cfcde866ee95957afc6d157943.tar.bz2 scala-ca9f4fbb7b1212cfcde866ee95957afc6d157943.zip |
*** empty log message ***
Diffstat (limited to 'test/pos/exceptions.scala')
-rw-r--r-- | test/pos/exceptions.scala | 5 |
1 files changed, 2 insertions, 3 deletions
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(); } |