[FIR] Consider call site in argument mapping handling for set operator call
^KT-56542 Fixed ^KT-56714 Fixed
This commit is contained in:
committed by
Space Team
parent
cbc8b74e89
commit
df47581c5a
+18
@@ -0,0 +1,18 @@
|
||||
// ISSUE: KT-56714
|
||||
|
||||
fun test(m: MyMap<EditorData, Any>) {
|
||||
m.set(SomeKey) { _, _ -> }
|
||||
m[SomeKey] = { _, _ -> }
|
||||
}
|
||||
|
||||
data class EditorData(val meta: MyMap<EditorData, Any>)
|
||||
|
||||
interface MyMap<Domain, V : Any> {
|
||||
operator fun <T : V> set(k: Key<T, Domain>, v: T)
|
||||
}
|
||||
|
||||
interface Key<V : Any, in Domain>
|
||||
|
||||
interface EditorDataKey<T : Any> : Key<T, EditorData>
|
||||
|
||||
object SomeKey : EditorDataKey<(String, bar: Any) -> Unit>
|
||||
Reference in New Issue
Block a user