diff options
Diffstat (limited to 'tests/run/t8933c.scala')
-rw-r--r-- | tests/run/t8933c.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/run/t8933c.scala b/tests/run/t8933c.scala new file mode 100644 index 000000000..22011bc32 --- /dev/null +++ b/tests/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 |