fda8d7de8b
Some quickfixes are relying on diagnostics, that won't be reported with new language features enabled. `MixedNamedArgumentsInTheirOwnPosition` `AllowBreakAndContinueInsideWhen`
15 lines
296 B
Kotlin
Vendored
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++
|
|
}
|
|
} |