f1e66d0654
#KT-26269 Fixed
12 lines
341 B
Plaintext
Vendored
12 lines
341 B
Plaintext
Vendored
// HIGHLIGHT: INFORMATION
|
|
// PROBLEM: Replace 'associateTo' with 'associateByTo'
|
|
// FIX: Replace with 'associateByTo'
|
|
// WITH_RUNTIME
|
|
fun getKey(i: Int): Long = 1L
|
|
fun getValue(i: Int): String = ""
|
|
|
|
fun test() {
|
|
val destination = mutableMapOf<Long, String>()
|
|
arrayOf(1).associateByTo(destination, { getKey(it) }, { getValue(it) })
|
|
}
|