Files
kotlin-fork/idea/testData/refactoring/extractFunction/controlFlow/evaluateExpression/evalIfExpr.kt
T

5 lines
136 B
Kotlin

// SIBLING:
fun foo(a: Int): Int {
val b: Int = 1
return <selection>if (a + b > 0) 1 else if (a - b < 0) 2 else b </selection>
}