blob: 7eda369119bc7e28b2c57ee42fa8dc0822f7c648 [file] [log] [blame]
// "Add '@loop' to break" "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' -> break@loop
}
pos++
}
}