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

Cannot get tag of data type with payload #234

Closed
casuallyblue opened this issue Apr 12, 2024 · 1 comment
Closed

Cannot get tag of data type with payload #234

casuallyblue opened this issue Apr 12, 2024 · 1 comment
Labels
feature New feature or request

Comments

@casuallyblue
Copy link
Contributor

Currently it is only possible to get tag values from enum data types without a payload, but in some cases it is useful to have both.

@typeswitch-dev typeswitch-dev added the feature New feature or request label Apr 13, 2024
typeswitch-dev added a commit that referenced this issue Apr 19, 2024
This moves the condition that enables the tag word for enums to only
cover the `from-tag-unsafe` function. It should be safe to check the tag
of a data type since they all have them.
Fixes issue #234

---------

Co-authored-by: typeswitch-dev <typeswitch@protonmail.com>
@typeswitch-dev
Copy link
Contributor

Fixed by #250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants