summaryrefslogblamecommitdiff
path: root/test/files/run/t6637.scala
blob: d3c380370b39c62c1b7a77afc00f066b576d5acd (plain) (tree)
1
2
3
4
5
6
7
8







                                                             
object Test extends App {
  try {
    class A ; class B ; List().head.isInstanceOf[A with B]
  } catch {
    case _ :java.util.NoSuchElementException => println("ok")
  }
}