Files
kotlin-fork/backend.native/tests/external/codegen/box/classes/kt1578.kt
T
2017-03-13 15:31:46 +03:00

10 lines
183 B
Kotlin

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"
}