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

Fix marshalling enums in CliMarshaller #133

Merged
merged 3 commits into from
Jul 19, 2023

Conversation

puff
Copy link
Contributor

@puff puff commented Jul 14, 2023

Closes #132

ElementType.Enum is only seen in custom attributes, which I don't think would ever be pushed to stack, so I removed that case and replaced it with ElementType.ValueType in CliMarshaller.GetElementType()
If you think I should add it back, just let me know :D

Also, enums can only have an underlying type of built-in integer types, so I removed the recursive call.

Copy link
Owner

@Washi1337 Washi1337 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small comment but otherwise LGTM.

@Washi1337 Washi1337 merged commit ac3fb60 into Washi1337:master Jul 19, 2023
1 check passed
@Washi1337
Copy link
Owner

Thanks!

@puff puff deleted the fix/enum-marshalling branch July 21, 2023 02:26
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.

Marshalling enum types result in Structure type hint being pushed
2 participants