Files
kotlin-fork/idea/testData/quickfix/when/continueInWhenWithLabel.kt
T
Pavel Kirpichenkov fda8d7de8b [IDEA-TESTS] Specify language version in feature-dependent tests
Some quickfixes are relying on diagnostics, that won't be reported
with new language features enabled.
`MixedNamedArgumentsInTheirOwnPosition`
`AllowBreakAndContinueInsideWhen`
2020-02-17 10:56:46 +03:00

21 lines
433 B
Kotlin
Vendored

// "Add label to loop" "true"
// LANGUAGE_VERSION: 1.3
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
}
}
}
}
}
}