mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 00:21:35 +00:00
17 lines
345 B
Kotlin
Vendored
17 lines
345 B
Kotlin
Vendored
// "Add label to loop" "true"
|
|
fun breakContinueInWhen(i: Int) {
|
|
for (y in 0..10) {
|
|
when(i) {
|
|
0 -> bre<caret>ak
|
|
2 -> {
|
|
for(z in 0..10) {
|
|
break
|
|
}
|
|
for(w in 0..10) {
|
|
continue
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|