It really shouldn't make a difference even if they weren't painted at all. The only issue with water would be if it got behind the shingle and was trapped there. If water gets behind a slate roof it will deteriorate the slate. Don't know how the shingle would fare.
Ron
Ron