mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
14 lines
271 B
Kotlin
Vendored
14 lines
271 B
Kotlin
Vendored
// "Add '@loop' to continue" "true"
|
|
// WITH_RUNTIME
|
|
|
|
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++
|
|
}
|
|
} |