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