fun test() = true fun foo() { val a = test() val b = !when (a) { true -> true else -> false } }