#$ use outer class and outer instance with environment inside. # 69 # 1 class A do-sth (x _) -> Unit h-const = 69 inst A Bool do-sth (x Bool) -> Unit println(h-const) # print-id(x) if x println(1) else println(0) return # outer-const = 420 fn f () #some-env = 1337 #print-id (asd) # print some-env # print asd # return asd fn g() fn h() do-sth(True) return h() return g() return f()