summaryrefslogtreecommitdiff
path: root/test/files/run/finally.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/finally.scala')
-rw-r--r--test/files/run/finally.scala14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/files/run/finally.scala b/test/files/run/finally.scala
index e4715c59ae..0da616cfdd 100644
--- a/test/files/run/finally.scala
+++ b/test/files/run/finally.scala
@@ -6,7 +6,7 @@ object Test extends App {
println("hi")
}
catch {
- case e => println("GOT HERE")
+ case e => println("SHOULD NOT GET HERE")
}
finally {
println("In Finally")
@@ -14,9 +14,21 @@ object Test extends App {
}
}
+ def m1 {
+ try {
+ throw new Exception
+ } catch {
+ case e =>
+ println(e);
+ return
+ } finally println("in finally")
+ }
+
try {
bar
} catch {
case e => println(e)
}
+
+ m1
}