mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 08:31:29 +00:00
37 lines
591 B
Kotlin
Vendored
37 lines
591 B
Kotlin
Vendored
fun foo() {
|
|
outer@while (true) {
|
|
try {
|
|
while (true) {
|
|
continue@outer
|
|
}
|
|
} finally {
|
|
break
|
|
}
|
|
}
|
|
println("OK")
|
|
}
|
|
|
|
fun bar(): String {
|
|
outer@while (true) {
|
|
try {
|
|
while (true) {
|
|
continue@outer
|
|
}
|
|
} finally {
|
|
return "OK"
|
|
}
|
|
}
|
|
}
|
|
|
|
fun baz(): String {
|
|
outer@while (true) {
|
|
try {
|
|
inner@while (true) {
|
|
continue@inner
|
|
}
|
|
} finally {
|
|
return "OK"
|
|
}
|
|
}
|
|
}
|