this post was submitted on 11 Oct 2023
1101 points (98.1% liked)

Programmer Humor

32000 readers
1744 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 9 points 11 months ago

Then you find out it worked because you added a defaulted ==-operator, which meant that all classes in the variant now had a ==-operaror, which then gave the variant itself a ==-operator, which then was a valid type.