summaryrefslogtreecommitdiff
path: root/test/files/run/structural.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/structural.scala')
-rw-r--r--test/files/run/structural.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/files/run/structural.scala b/test/files/run/structural.scala
index 3a703d2cf1..2788717ec2 100644
--- a/test/files/run/structural.scala
+++ b/test/files/run/structural.scala
@@ -1,3 +1,6 @@
+
+import scala.language.{ reflectiveCalls }
+
object test1 {
val o1 = new Object { override def toString = "ohone" }
@@ -164,7 +167,7 @@ object test3 {
}
catch {
case e: Exc => println("caught")
- case e => println(e)
+ case e: Throwable => println(e)
}
m(Rec)