From de68205eba7d3cf883822c59239d9c871c48d47e Mon Sep 17 00:00:00 2001 From: Iulian Dragos Date: Mon, 24 Sep 2007 17:29:55 +0000 Subject: Fixed ticket #88 (verify error, exceptions). --- test/files/run/exceptions-2.scala | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/files/run/exceptions-2.scala') diff --git a/test/files/run/exceptions-2.scala b/test/files/run/exceptions-2.scala index d76a52f5e8..0805ffe295 100644 --- a/test/files/run/exceptions-2.scala +++ b/test/files/run/exceptions-2.scala @@ -122,6 +122,15 @@ object Test { Console.println(x); } + def withValue2: Unit = { + val x = try { + null + } finally { + Console.println("droped a null"); + }; + Console.println(x); + } + def tryFinallyTry: Unit = { try { () @@ -246,6 +255,9 @@ object Test { Console.println("withValue1:"); execute(withValue1); + Console.println("withValue2:"); + execute(withValue2); + Console.println("method2:"); execute(method2); -- cgit v1.2.3