// FIR_IDENTICAL abstract class Parent { protected fun foo() {} } class Derived : Parent() { fun bar(x: Derived) { x.foo() } }