#$ Use class from "outside" and instance from "inside". # 10 # 420 # 69 # () # 1 ##= envsize f 7 ##= envsize g 8 ##= envsize h 9 class A do-sth (x _) -> Unit inst A I32 do-sth (x I32) -> Unit println(x) return outer-const = 420 fn f () bool-const = 10 fn g() h-const = 69 fn h() boop-const = Unit inst A Bool do-sth (x Bool) -> Unit println(bool-const) println(outer-const) println(h-const) println(boop-const) if x println(1) else println(0) return do-sth(True) return h() return g() return f()