Files
kotlin-fork/nj2k/testData/newJ2k/postProcessing/java8MapForEachWithFullJdk.kt
T
Ilya Kirillov f950a0246c New J2K: handle correctly short names which are imported by default in kotlin (like List or Result)
Kotlin default import inserter was unable to correctly insert such imports

#KT-34165 fixed
2019-10-04 15:17:35 +03:00

9 lines
222 B
Kotlin
Vendored

import java.util.HashMap
internal class Test {
fun test(map: HashMap<String?, String?>) {
map.forEach { (key: String?, value: String?) -> foo(key, value) }
}
fun foo(key: String?, value: String?) {}
}