Files
kotlin-fork/idea/testData/refactoring/extractFunction/controlFlow/unextractable/outputValueWithExpression.kt
T
2014-04-17 19:01:20 +04:00

15 lines
196 B
Kotlin

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