Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Duplicate union(enum) variant labels of differing types do not result in an error #730
This compiles with the following error:
We should get a warning regarding the duplicate tagname instead. Reversing the order of declaration makes the following code work. I presume we just are not checking for duplicate tag names and are taking the first present value as the actual.
Also probably related, but when the tagnames are of identical types.