Files
Toshiaki Kameyama 4600300f89 JavaMapForEachInspection: report for expression with implicit receiver
^KT-31833 Fixed

Original commit: 93db78e7acc0d4b3f97ca031ca3d91be4b5cca99

GitOrigin-RevId: 05b8732f22b69037875ae5ff715b46f66c6feb55
2020-10-01 14:33:06 +03:00

10 lines
183 B
Plaintext

// RUNTIME_WITH_FULL_JDK
fun test(map: Map<Int, String>) {
map.run {
forEach { (key, value) ->
foo(key, value)
}
}
}
fun foo(i: Int, s: String) {}