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