Files
kotlin-fork/nj2k/testData/newJ2k/issues/kt-19606.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

8 lines
226 B
Kotlin
Vendored

import java.util.HashMap
class TestMethodReference {
private val hashMap = HashMap<String, String>()
fun update(key: String, msg: String) {
hashMap.merge(key, msg) { obj: String, s: String -> obj + s }
}
}