Inspection: Simplify Nested forEach/onEach in also/apply to onEach
^KT-40283 Fixed
This commit is contained in:
committed by
Vladimir Dolzhenko
parent
85d99612a2
commit
c3aeaa9052
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
fun test(){
|
||||
listOf(1, 2, 3).also<caret> { it.forEach { i ->
|
||||
if (i % 2 == 0) return@forEach
|
||||
}}
|
||||
}
|
||||
Reference in New Issue
Block a user