mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 08:31:38 +00:00
17 lines
352 B
Plaintext
Vendored
17 lines
352 B
Plaintext
Vendored
// "Add label to loop" "true"
|
|
fun breakContinueInWhen(i: Int) {
|
|
loop@ for (y in 0..10) {
|
|
when(i) {
|
|
0 -> continue@loop
|
|
2 -> {
|
|
for(z in 0..10) {
|
|
break
|
|
}
|
|
for(w in 0..10) {
|
|
continue
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|