blob: d1aeecf86bf62fcc360f8c4db51fe192c16d046e [file] [log] [blame]
fun box() : String {
var i = 0
val lambda = { i++ }
lambda()
i++ //the problem is here
// i = i + 1 //this way it works
return if (i == 2) "OK" else "fail"
}