aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t8933c.scala
blob: 22011bc323faad727f2489b0e649506f41b35840 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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