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.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/exceptions-2.scala b/test/files/run/exceptions-2.scala
index 3802297d84..d76a52f5e8 100644
--- a/test/files/run/exceptions-2.scala
+++ b/test/files/run/exceptions-2.scala
@@ -94,7 +94,7 @@ object Test {
try {
val a: Leaf = null;
- a.x;
+ println(a.x);
} catch {
case Leaf(a) => Console.println(a);
case _: NullPointerException => Console.println("Exception occurred");
@@ -104,7 +104,7 @@ object Test {
def method3: Unit = try {
try {
val a: Leaf = null;
- a.x;
+ println(a.x);
} catch {
case Leaf(a) => Console.println(a);
}