Files
kotlin-fork/idea/testData/refactoring/introduceVariable/ComplexCallee.kt.after
T

10 lines
187 B
Plaintext
Vendored

// WITH_RUNTIME
fun fn(index : Int, list: List<()->Unit>) {
when {
index in list.indices -> {
val function = list[index]
function()
}
}
}