Replace return@forEach with continue in ConvertForEachToForLoopIntention

So #KT-17332 Fixed
This commit is contained in:
Kirill Rakhman
2017-10-11 23:15:30 +03:00
committed by Mikhail Glukhikh
parent da52716bfd
commit 4c4427c280
6 changed files with 62 additions and 7 deletions
@@ -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
}
}