Files
Toshiaki Kameyama 1701e7d172 JavaMapForEachInspection: don't report if argument is not single
#KT-39151 Fixed

Original commit: 2a36a8acacf35d07100785c1de3d28b0808d646d

GitOrigin-RevId: d8998eabd03ab6af04b6be9e3a14ba86a5e06205
2020-07-08 21:00:18 +03:00

11 lines
241 B
Kotlin

// 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) {}