summaryrefslogtreecommitdiff
path: root/test/files/run/try.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/try.scala')
-rw-r--r--test/files/run/try.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/files/run/try.scala b/test/files/run/try.scala
index e393c0b4b1..a4fdfd796b 100644
--- a/test/files/run/try.scala
+++ b/test/files/run/try.scala
@@ -45,7 +45,7 @@ object Test extends AnyRef with App {
instance = try {
"" //new String();
} catch {
- case _ =>
+ case _: Throwable =>
val cs = "aaa";
if (cs.length() > 0) {
"" //new String();
@@ -65,13 +65,13 @@ object Test extends AnyRef with App {
1+1;
()
} catch {
- case _ =>
+ case _: Throwable =>
Console.println("2");
sys.error("for good");
}
Console.println("a");
} catch {
- case _ => ();
+ case _: Throwable => ();
}
class A {
@@ -95,7 +95,7 @@ object Test extends AnyRef with App {
try {
null
} catch {
- case _ => null
+ case _: Throwable => null
}
new AnyRef {