fun foo(): Boolean { return true } fun main() { if (foo() && foo()) { foo() } else { foo() } }