summaryrefslogblamecommitdiff
path: root/test/files/run/t2333.scala
blob: 7dc7a92df283cc7bebfe7e05d8337704691e22c4 (plain) (tree)
1
2
3
4


                      
                                                               










                                
 
class A {
    def whatever() {
        lazy val a = 1
        lazy val b = try { 2 } catch { case _: Throwable => 0 }
        a
        b

    }
}

object Test {
    def main(a: Array[String]) {
        val a = new A
        a.whatever
    }
}