Sign in
android
/
platform
/
external
/
jetbrains
/
kotlin
/
studio-master-dev
/
.
/
idea
/
testData
/
quickfix
/
when
/
continueInWhenInLabeled.kt
blob: e98ce1c7f76c662d66b06cce517c5766d95a3175 [
file
] [
log
] [
blame
]
// "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
++
}
}