Fix condition generation of empty if
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
var result = "Fail"
|
||||
|
||||
fun setOK(): Boolean {
|
||||
result = "OK"
|
||||
return true
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
if (setOK()) {
|
||||
} else {
|
||||
}
|
||||
return result
|
||||
}
|
||||
Reference in New Issue
Block a user