Files
kotlin-fork/compiler/testData/codegen/box/functions/kt785.kt
T
2018-06-28 12:26:41 +02:00

15 lines
204 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
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"
}