JavaMapForEachInspection: do not report when lambda parameter is destructuring declaration
#KT-34511 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
8857827dce
commit
afc680d5c9
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user