Files
kotlin-fork/idea/testData/quickfix/when/continueInWhenInLabeled.kt
T
2021-05-11 21:42:45 +02:00

17 lines
314 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++
}
}
/* IGNORE_FIR */