Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
0801cc12da5af28d8009eb66d070f37079ab755d
/
.
/
idea
/
testData
/
quickfix
/
when
/
breakInWhenInLabeled.kt
blob: 54de554407cc401221ee8249436649adfc906882 [
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'
->
br
<caret>
eak
}
pos
++
}
}