ae4b8be16b
In details, this commit changes the following: - it converts FIR when without branches to empty IR block without when - it doesn't drop empty else branches in when anymore
12 lines
145 B
Kotlin
Vendored
12 lines
145 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
fun foo() {
|
|
when {}
|
|
val x = 0
|
|
when (x) {
|
|
else -> {}
|
|
}
|
|
val z = when (x) {
|
|
else -> {}
|
|
}
|
|
}
|