f1e66d0654
#KT-26269 Fixed
10 lines
295 B
Kotlin
Vendored
10 lines
295 B
Kotlin
Vendored
// PROBLEM: Replace 'associateTo' with 'associateWithTo'
|
|
// FIX: Replace with 'associateWithTo'
|
|
// WITH_RUNTIME
|
|
fun getValue(i: Int): String = ""
|
|
|
|
fun associateWithTo() {
|
|
val destination = mutableMapOf<Int, String>()
|
|
listOf(1).<caret>associateTo(destination) { i -> i to getValue(i) }
|
|
}
|