summaryrefslogtreecommitdiff
path: root/test/files/run/exceptions-2.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/exceptions-2.scala')
-rw-r--r--test/files/run/exceptions-2.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/files/run/exceptions-2.scala b/test/files/run/exceptions-2.scala
index e26b2e4a84..3802297d84 100644
--- a/test/files/run/exceptions-2.scala
+++ b/test/files/run/exceptions-2.scala
@@ -115,8 +115,7 @@ object Test {
def withValue1: Unit = {
val x = try {
- var y = 10
- y
+ 10
} finally {
Console.println("Oh, oh");
};