interface Test {
fun blah()
}
interface A {
fun doSomething()
}
interface B {
fun doSomething()
}
context(A, B)
class TestImpl : Test {
override fun blah() {
doSomething() // <-- Overload resolution ambiguity
}
}
this currently shows an
Overload resolution ambiguity. All these functions match.
error
will
this@A.doSomething()
and
this@B.doSomething()
be supported in the future?
janvladimirmostert
05/27/2023, 7:21 PM
nevermind, it compiles
it's just the IntelliJ autocomplete that doesn't show A/B options or doSomething when you hit this@A.
a
Ayfri
05/27/2023, 10:01 PM
Yup, it's a current limitation from using context receivers, intellij is just breaking on these, this is why it's still experimental