9 lines
247 B
Kotlin
Vendored
9 lines
247 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
fun <T> foo(t: T) = t
|
|
|
|
fun test(map: MutableMap<Int, Int>, t: Int) {
|
|
map [t] = foo(t) // t was marked with black square
|
|
}
|
|
|
|
//from library
|
|
operator fun <K, V> MutableMap<K, V>.set(key : K, value : V) : V? = this.put(key, value) |