Overlapping features Warlock & Aasimar

If you are a Aasimar warlock who’s otherworldly patron is The Celestial you will know the light cantrip from both race and class. Additional once your reach 6th level in warlock you will have have resistance to radiant damage from both race and class.

Is there any ruling on what happens when you have overlapping class and race features?