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

9 lines
168 B
Kotlin

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