interface A { fun foo(t: T): T = t } class B : A { private fun foo() {} } fun box(): String = B().foo("OK")