Files
kotlin/idea/testData/refactoring/extractFunction/controlFlow/evaluateExpression/evalExprInIfCondition.kt

6 lines
136 B
Kotlin

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