open class A { fun foo() = "OK" } fun box() = object : A() { fun bar() = super.foo() }.bar()