Add inspection to replace Java Map.forEach with Kotlin's forEach
#KT-17278 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
9c674cb7c3
commit
1a818970c3
@@ -0,0 +1,8 @@
|
||||
// PROBLEM: none
|
||||
// WITH_RUNTIME
|
||||
fun test(map: Map<Int, String>) {
|
||||
map.<caret>forEach {
|
||||
foo(it)
|
||||
}
|
||||
}
|
||||
fun foo(it: Map.Entry<Int, String>) {}
|
||||
Reference in New Issue
Block a user