Files
kotlin-fork/compiler/testData/codegen/statements/ifSingleBranch.kt
T
Alexander Udalov af601b5a90 Single-branch if-statements
Single-branch if-expressions are now compiled to statements if the result is
not used

 #KT-3036 In Progress
2012-11-22 22:31:40 +04:00

10 lines
100 B
Kotlin

fun foo() {
if (0 < 1) {
return
}
if (1 < 2) else {
return
}
}