fun test() { while (cond()) { if (foo() == 5) { break } else if (foo() == 6) { continue } consume("foo") } } fun cond(): Boolean = true fun foo(): Int = 0 fun consume(text: String?) = {}