class A { fun foo() {} } fun A.bar() = this.foo()