fda8d7de8b
Some quickfixes are relying on diagnostics, that won't be reported with new language features enabled. `MixedNamedArgumentsInTheirOwnPosition` `AllowBreakAndContinueInsideWhen`
15 lines
290 B
Kotlin
Vendored
15 lines
290 B
Kotlin
Vendored
// "Add '@loop' to break" "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' -> br<caret>eak
|
|
}
|
|
pos++
|
|
}
|
|
} |