Files
kotlin-fork/idea/testData/codeInsight/unwrapAndRemove/unwrapElse/elseCompoundInBlock.kt
T

13 lines
172 B
Kotlin

// OPTION: 3
fun foo(n: Int): Int {
if (n > 0) {
println("> 0")
n + 10
} <caret>else {
println("<= 0")
n - 10
}
return n
}