f1e66d0654
#KT-26269 Fixed
9 lines
268 B
Kotlin
Vendored
9 lines
268 B
Kotlin
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>()
|
|
listOf(1).<caret>associateTo(destination) { getKey(it) to it }
|
|
} |