@kgwgk well, the company obviously doesn't want to pay the dividend twice. So indeed they will only pay to Z. If X pays Y I presume that's just the terms of the lending agreement.
> What doesn't make sense is for both Y and Z to vote, for example.
Very good point. But it just confirms that it makes no sense to say that Y still owns a share.