Files
kotlin-fork/idea/testData/refactoring/extractFunction/controlFlow/outputValues/singleOutputValueWithIf.kt
T

11 lines
149 B
Kotlin

// SIBLING:
fun foo(a: Int): Int {
var b: Int = 1
<selection>if (a > 0) {
b = b + 1
}
println(b)</selection>
return b
}