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