compiler/testData/codegen/box/controlStructures/conditionOfEmptyIf.kt (11 lines of code) (raw):

var result = "Fail" fun setOK(): Boolean { result = "OK" return true } fun box(): String { if (setOK()) { } else { } return result }