Files
kotlin-fork/idea/testData/quickfix/when/continueInWhenInLabeled.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

15 lines
296 B
Kotlin
Vendored

// "Add '@loop' to continue" "true"
// WITH_RUNTIME
// LANGUAGE_VERSION: 1.3
fun foo(chars: CharArray) {
val length = chars.size
var pos = 0
loop@ while (pos < length) {
val c = chars[pos]
when (c) {
'\n' -> continue<caret>
}
pos++
}
}