Files
kotlin/idea/testData/refactoring/extractFunction/controlFlow/evaluateExpression/evalExprInIf.kt
2014-04-17 19:01:20 +04:00

5 lines
141 B
Kotlin

// NEXT_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>
}