open class A { } class B: A { fun bar() { foo() } fun foo() { } }