Files
kotlin-fork/compiler/testData/codegen/box/classes/kt1578.kt
T
2019-11-19 11:00:09 +03:00

11 lines
213 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
fun box() : String {
var i = 0
{
i++
}()
i++ //the problem is here
// i = i + 1 //this way it works
return if (i == 2) "OK" else "fail"
}