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

9 lines
214 B
Kotlin
Vendored

// PROBLEM: none
// WITH_RUNTIME
fun getValue(i: Int): String = ""
fun associateWithTo() {
val destination = mutableMapOf<Int, String>()
arrayOf(1).<caret>associateTo(destination) { it to getValue(it) }
}