ilya.gorbunov
fun foo(selector: Int): () -> Int { return when (selector) { 1 -> { -> 1 } else -> { { selector } } } }