141333bdcd
fixes receiver selection when the candidate has more that one possible extension receiver #KT-62129 fixed
13 lines
216 B
Kotlin
Vendored
13 lines
216 B
Kotlin
Vendored
// !LANGUAGE: +ContextReceivers
|
|
// TARGET_BACKEND: JVM_IR
|
|
|
|
class A { val o = "O" }
|
|
class B { val k = "K" }
|
|
|
|
val A.bar get() = o
|
|
|
|
context(A, B)
|
|
fun ok() = bar + k
|
|
|
|
fun box(): String = with(A()) { with(B()) { ok() } }
|