Files
kotlin-fork/compiler/testData/codegen/box/functions/kt785.kt
T

14 lines
178 B
Kotlin
Vendored

class A() {
var x : Int = 0
var z = {
x++
}
}
fun box() : String {
val a = A()
a.z() //problem is here
return if (a.x == 1) "OK" else "fail"
}