Files
kotlin-fork/idea/testData/quickfix/when/breakInWhenInLabeled.kt
T
2021-05-11 21:42:45 +02:00

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 */