Files
kotlin-fork/idea/testData/inspectionsLocal/replaceAssociateFunction/associateByKeyAndValue/notSingle.kt
T
2019-03-11 19:33:17 +03:00

12 lines
234 B
Kotlin
Vendored

// PROBLEM: none
// WITH_RUNTIME
fun getKey(i: Int): Long = 1L
fun getValue(i: Int): String = ""
fun test() {
listOf(1).<caret>associate {
val key = getKey(it)
val value = getValue(it)
key to value
}
}