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

8 lines
212 B
Kotlin
Vendored

// PROBLEM: Replace 'associate' with 'associateWith'
// FIX: Replace with 'associateWith'
// WITH_RUNTIME
fun getValue(i: Int): String = ""
fun test() {
listOf(1).associate<caret> { i -> i to getValue(i) }
}