18 lines
220 B
Kotlin
Vendored
18 lines
220 B
Kotlin
Vendored
fun call(f: () -> Unit) = f()
|
|
|
|
fun f1() {
|
|
outer@ while (true) {
|
|
call {
|
|
break@outer
|
|
}
|
|
}
|
|
}
|
|
|
|
fun f2() {
|
|
do {
|
|
fun inner() {
|
|
continue
|
|
}
|
|
} while (true)
|
|
}
|