Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azsdhTreat cases like fields in union #214

Merged
merged 1 commit into from
Jan 19, 2025
Merged

Conversation

agocke
Copy link
Collaborator

@agocke agocke commented Jan 19, 2025

This actually aligns with enums. Each case is a field, but only one case is 'live' at a time. It also makes code using the union simpler as it can effectively recur into
it by treating like any other composite type.

This actually aligns with enums. Each case is a field, but only
one case is 'live' at a time. It also makes code using the
union simpler as it can effectively recur into
it by treating like any other composite type.
@agocke agocke enabled auto-merge (squash) January 19, 2025 03:12
@agocke agocke merged commit f5076be into serdedotnet:main Jan 19, 2025
1 check passed
@agocke agocke deleted the fix-unions branch January 19, 2025 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant