Replace return@forEach with continue in ConvertForEachToForLoopIntention
So #KT-17332 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
da52716bfd
commit
4c4427c280
@@ -0,0 +1,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo() {
|
||||
listOf(1).<caret>forEach {
|
||||
listOf(1).forEach { return@forEach }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo() {
|
||||
for (it in listOf(1)) {
|
||||
listOf(1).forEach { return@forEach }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo() {
|
||||
listOf(1).<caret>forEach {
|
||||
return@forEach
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo() {
|
||||
for (it in listOf(1)) {
|
||||
continue
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user