584.2. For the purposes of section 584, where a taxpayer resident in Canada acquires a share of the capital stock of a corporation that is immediately after the acquisition a foreign affiliate of the taxpayer from a partnership of which the taxpayer, or a corporation resident in Canada with which the taxpayer was not dealing at arm’s length at the time the share was acquired, was a member at any time during any fiscal period of the partnership that began before the acquisition, the following rules apply: (a) that portion of any amount that the partnership was required by section 587 to add to the adjusted cost base of the share of the foreign affiliate equal to the amount included in computing the income of the member of the partnership because of section 600 in relation to the amount that was included in computing the income of the partnership under section 580 or 582 in respect of the foreign affiliate and added to that adjusted cost base, is deemed to be an amount that the taxpayer was required by section 587 to add in computing the adjusted cost base of the share; and
(b) that portion of any amount that the partnership was required by section 587 to deduct from the adjusted cost base of the share of the foreign affiliate equal to the amount by which the income of the member of the partnership was reduced because of section 600 in relation to the amount deducted in computing the income of the partnership, in respect of the foreign affiliate, under any of sections 581, 583 and 584 and deducted from that adjusted cost base, is deemed to be an amount that the taxpayer was required by section 587 to deduct in computing the adjusted cost base of the share.