aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t3570.scala
blob: 237391719a318dcc9727ceb74cb2f7ac27991bbc (plain) (tree)
1
2
3
4
5
6
7
            




                                                 
 
class test {
    object Break extends Throwable
    def break = throw Break
    def block(x: => Unit): Unit = {
        try { x } catch { case e: Break.type => }
    }
}