Files
kotlin-fork/compiler/testData/codegen/regressions/kt1578.kt
T
2012-06-02 23:08:05 +02: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"
}