summaryrefslogtreecommitdiff
path: root/test/files/run/finally.scala
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@epfl.ch>2011-11-02 14:34:35 +0000
committerHubert Plociniczak <hubert.plociniczak@epfl.ch>2011-11-02 14:34:35 +0000
commitb6778be91900b8161e705dc2598ef7af86842b0b (patch)
treed15e8ec18a37eec212f50f1ace27714d7e7d4d34 /test/files/run/finally.scala
parentac6c76f26d884a94d0c9ff54f055d3f9ab750bac (diff)
downloadscala-b6778be91900b8161e705dc2598ef7af86842b0b.tar.gz
scala-b6778be91900b8161e705dc2598ef7af86842b0b.tar.bz2
scala-b6778be91900b8161e705dc2598ef7af86842b0b.zip
Begone t1737...
Diffstat (limited to 'test/files/run/finally.scala')
-rw-r--r--test/files/run/finally.scala12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/files/run/finally.scala b/test/files/run/finally.scala
index b3b7f684e5..635123cc4d 100644
--- a/test/files/run/finally.scala
+++ b/test/files/run/finally.scala
@@ -10,7 +10,7 @@ object Test extends App {
case e => println(e)
}
}
-
+
// test that finally is not covered by any exception handlers.
def bar {
try {
@@ -26,7 +26,7 @@ object Test extends App {
}
// return in catch (finally is executed)
- def retCatch {
+ def retCatch {
try {
throw new Exception
} catch {
@@ -37,7 +37,7 @@ object Test extends App {
}
// throw in catch (finally is executed, exception propagated)
- def throwCatch {
+ def throwCatch {
try {
throw new Exception
} catch {
@@ -48,7 +48,7 @@ object Test extends App {
}
// return inside body (finally is executed)
- def retBody {
+ def retBody {
try {
return
} catch {
@@ -75,7 +75,7 @@ object Test extends App {
finally {
println("in finally 1")
return
- }
+ }
} finally println("in finally 2")
}
@@ -94,7 +94,7 @@ object Test extends App {
}
// nested finallies with return value
- def nestedFinalies: Int =
+ def nestedFinalies: Int =
try {
try {
return 10