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