Some upgrade paths transform a unit from a ranged one to a melee one - for example, a crossbowman normally upgrades to a rifleman. However, ranged units get different damage-increasing promotions from melee units.
What happens to those ranged-damage promotions in that case? Do they still apply, or are they completely wasted?