"ForEach parameter unused": don't report destructured parameters

Related to KT-22068
This commit is contained in:
Dennis Cornwell
2018-08-08 08:05:56 +03:00
committed by Mikhail Glukhikh
parent c0c00c8c4e
commit f3b0378918
2 changed files with 11 additions and 1 deletions
@@ -0,0 +1,5 @@
fun foo(map: Map<String, String>) {
map.forEach { (t, u) ->
println("$t: $u")
}
}