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