fun foo(t: T) = t fun test(map: MutableMap, t: Int) { map [t] = foo(t) // t was marked with black square } //from library fun MutableMap.set(key : K, value : V) : V? = this.put(key, value)