aboutsummaryrefslogblamecommitdiff
path: root/tests/pending/run/t2333.scala
blob: de405a8edc2a8126cfe670ffb51a9f943535d522 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
         
                            








                                                               
                                        



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

    }
}

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