Jump after 'for' cycle to loop parameter change.
Not to the cycle body.
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
fun foo(numbers: Collection<Int>) {
|
||||
for (i in numbers) {
|
||||
val b: Boolean
|
||||
if (1 < 2) {
|
||||
b = false
|
||||
}
|
||||
else {
|
||||
b = true
|
||||
}
|
||||
use(b)
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
fun use(vararg a: Any?) = a
|
||||
Reference in New Issue
Block a user