17 lines
308 B
Kotlin
Vendored
17 lines
308 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++
|
|
}
|
|
}
|
|
/* IGNORE_FIR */
|