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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user