JavaMapForEachInspection: don't report if argument is not single

#KT-39151 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-05-25 20:28:05 +09:00
committed by Yan Zhulanow
parent 7d3b28d75b
commit 2a36a8acac
3 changed files with 17 additions and 0 deletions
@@ -0,0 +1,11 @@
// PROBLEM: none
// RUNTIME_WITH_FULL_JDK
import java.util.concurrent.ConcurrentHashMap
fun test(map: ConcurrentHashMap<Int, String>) {
map.<caret>forEach(1) { key, value ->
foo(key, value)
}
}
fun foo(i: Int, s: String) {}