test for KT-1578 (duplicate of KT-1980)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user