// PROBLEM: none fun test() = true fun foo(): Int { val a = test() return null ?: when (a) { true -> 42 else -> 5 } }