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
Field access of explicit tag type union should prioritize definitions over tag. #959
Also, there should probably be some way to refer to definitions with the same symbols as the enum tags even in auto-generated tag unions (and no-tag unions), or be made a compile error (the current state where there are unreachable definitions is the problem imo).
For now I made a change to prioritize members over tag values for tagged unions. For implicit tagged unions, you can use
To finish implementing the rest of this proposal: