Interface-delegation to same variable


#1

Multiple interfaces can be delegated to the same variable:

interface A{ fun foo() }
interface B{ fun foo() }

class T : A, B{
    override fun foo()
}

class R(t: T) : A by t, B by t

I think it would be great to be able for the compiler to see that both methods are delegated to the same variable, which means that the function doesn’t have contradictions.