fun main(args: Array) { var a = 0 fun local() { class A { val b = 0 fun f() { a = b } } fun local2() : A { return A() } } println("OK") }