af601b5a90
Single-branch if-expressions are now compiled to statements if the result is not used #KT-3036 In Progress
12 lines
123 B
Kotlin
12 lines
123 B
Kotlin
fun foo() {
|
|
if (0 < 1) {
|
|
return
|
|
}
|
|
|
|
val u: Unit = if (0 < 1) {
|
|
return
|
|
}
|
|
}
|
|
|
|
// 2 3 6 7 6
|