fun test() = 42 fun foo() { val a = test() when (a) { 1 -> 0 else -> 24 } }