(1) Where a period (in this section referred to as 'a non-resident period') of one or more years of assessment for which section 579A applies to a settlement, succeeds a period (in this section referred to as 'a resident period’) of one or more years of assessment for each of which section 579A does not apply to the settlement, a capital payment received by a beneficiary in the resident period shall be disregarded for the purposes of section 579A if it was not made in anticipation of a disposal made by the trustees in the non-resident period.
(2) Where -
(a) a non-resident period is succeeded by a resident period, and
(b) the trust gains for the last year of assessment of the non-resident period are not, or not wholly, treated as chargeable gains accruing to beneficiaries, then, subject to subsection (3), those trust gains, or the outstanding part of them, shall be treated as chargeable gains accruing in the first year of assessment of the resident period, to beneficiaries of the set
…