blob: 516b437f460b3c914db0c7008c08272769f2af98 [file]
// IGNORE_BACKEND_FIR: JVM_IR
fun printlnMock(a: Any) {}
public fun testCoalesce() {
val value: String = when {
true -> {
if (true) {
"foo"
} else {
"bar"
}
}
else -> "Hello world"
}
printlnMock(value.length)
}
fun box(): String {
testCoalesce()
return "OK"
}