Files
kotlin-fork/compiler/testData/codegen/box/controlStructures/kt3273.kt
T
2019-11-19 11:00:09 +03:00

23 lines
375 B
Kotlin
Vendored

// 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"
}