Files
kotlin-fork/idea/testData/refactoring/extractFunction/controlFlow/evaluateExpression/evalIfExpr.kt
T
2014-06-23 21:10:12 +04:00

7 lines
190 B
Kotlin

// PARAM_TYPES: kotlin.Int
// PARAM_TYPES: kotlin.Int
// 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>
}