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

9 lines
163 B
Kotlin

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