JavaMapForEachInspection: do not report when lambda parameter is destructuring declaration

#KT-34511 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-11-29 14:04:43 +09:00
committed by Mikhail Glukhikh
parent 8857827dce
commit afc680d5c9
3 changed files with 17 additions and 1 deletions
@@ -0,0 +1,10 @@
// PROBLEM: none
// RUNTIME_WITH_FULL_JDK
fun test(map: Map<Int, String>) {
val mapOfPairs = mapOf<Pair<Int, Int>, Int>()
mapOfPairs.<caret>forEach { (first, second), value ->
println(first)
println(second)
println(value)
}
}