interface Z { companion object { val instance: Z? = null } } fun foo(): Z? = Z // ORDER: instance // ORDER: object