mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
19 lines
407 B
Kotlin
Vendored
19 lines
407 B
Kotlin
Vendored
// "Add label to loop" "true"
|
|
fun breakContinueInWhen(i: Int) {
|
|
loop@ for (x in 0..10) {
|
|
for (y in 0..10) {
|
|
when(i) {
|
|
0 -> co<caret>ntinue
|
|
2 -> {
|
|
for(z in 0..10) {
|
|
break
|
|
}
|
|
for(w in 0..10) {
|
|
continue
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|