Fix condition generation of empty if

This commit is contained in:
Alexander Udalov
2012-11-22 15:37:39 +04:00
parent af601b5a90
commit 8564c20baa
3 changed files with 20 additions and 5 deletions
@@ -0,0 +1,13 @@
var result = "Fail"
fun setOK(): Boolean {
result = "OK"
return true
}
fun box(): String {
if (setOK()) {
} else {
}
return result
}