Files
kotlin/idea/testData/refactoring/extractFunction/controlFlow/evaluateExpression/evalExprInWhenCondition.kt.after

12 lines
164 B
Plaintext
Vendored

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