Files
kotlin-fork/idea/testData/inspectionsLocal/replaceAssociateFunction/associateBy/array.kt
T

8 lines
200 B
Kotlin
Vendored

// PROBLEM: Replace 'associate' with 'associateBy'
// FIX: Replace with 'associateBy'
// WITH_RUNTIME
fun getKey(i: Int): Long = 1L
fun test() {
arrayOf(1).<caret>associate { getKey(it) to it }
}