open class B class A val prop = object : B() { private fun foo(x: A): A { return x } }