Quickfix to add a loop label when 'break' or 'continue' is used in a loop inside 'when'

#KT-7202 Fixed
This commit is contained in:
Dmitry Jemerov
2015-04-29 18:05:45 +02:00
parent 625096466e
commit 6f4cae03fe
11 changed files with 210 additions and 0 deletions
@@ -0,0 +1,18 @@
// "Add label to loop" "true"
fun breakContinueInWhen(i: Int) {
loop@ for (x in 0..10) {
for (y in 0..10) {
when(i) {
0 -> co<caret>ntinue
2 -> {
for(z in 0..10) {
break
}
for(w in 0..10) {
continue
}
}
}
}
}
}