summaryrefslogtreecommitdiff
path: root/test/files/run/t8933c.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t8933c.scala')
-rw-r--r--test/files/run/t8933c.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/run/t8933c.scala b/test/files/run/t8933c.scala
new file mode 100644
index 0000000000..22011bc323
--- /dev/null
+++ b/test/files/run/t8933c.scala
@@ -0,0 +1,14 @@
+object Test {
+ def main(args: Array[String]): Unit = {
+ try {
+ {throw T; Symbol}.apply("a")
+ assert(false, "exception not thrown")
+ } catch {
+ case T => // ok
+ case t: Throwable =>
+ assert(false, "wrong not thrown: " + t)
+ }
+ }
+}
+
+object T extends Throwable