diff options
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/simple-exceptions.scala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/files/pos/simple-exceptions.scala b/test/files/pos/simple-exceptions.scala index 52c33fb43a..38f2fc8500 100644 --- a/test/files/pos/simple-exceptions.scala +++ b/test/files/pos/simple-exceptions.scala @@ -7,14 +7,14 @@ object Test { def main(args: Array[String]): Unit = { try { try { - Console.println("hi!"); - error("xx"); - } finally { - Console.println("ho!") + Console.println("hi!") + error("xx") } - } catch { + finally Console.println("ho!") + } + catch { case ex: IOException => Console.println("io exception!"); - case ex => Console.println(ex); + case ex => Console.println(ex); } } } |