I have recently gotten to the end of a Tomb of Annihilation campaign as a player (potential spoilers ahead) and during our final fight, a magic item was used to apply the following effect to our party:
Invoke Curse. The Staff of the Forgotten One has 7 charges and regains 1d4 + 3 expended charges daily at dawn. While holding the staff, you can use an action to expend 1 charge and target one creature you can see within 60 feet of you. The target must succeed on a Constitution saving throw (using your spell save DC) or be cursed. While cursed in this way, the target can't regain hit points and has vulnerability to necrotic damage. A Greater Restoration, Remove Curse, or similar spell ends the curse on the target.
During this fight, our party also had a different affect that gave temporary hit points to some of our members each round and at the time I argued (unsuccessfully) that temporary hit points are different from hit points as they function differently and are not a substitute for actual hitpoints. My DM said that ultimately their intention was to have this curse deny the temp hp so that we as players had to try to plan around it as a hazard.
We did ultimately beat the final fight and come out alive and I fully respect our DMs decision about denying new temporary hit points given that they'd balanced the fight around it, but from a "rules as written" perspective, which of us had the correct reading/understanding?