Fixes issue with type promoting where one type is a constant