class A { ~A.foo~fun foo() = 1 } class B { fun foo() = 2 fun A.bar() = `A.foo`foo() }