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

Workaround for runtime returning wrong enum tag #94

Merged
merged 1 commit into from
Oct 25, 2022

Conversation

stephencelis
Copy link
Member

@stephencelis stephencelis commented Oct 25, 2022

Fixes #71.

In release builds, Swift <=5.7 may return the wrong tag for single-case enums that nest another enum. We can work around this by always returning "0" as the tag for single case enums.

Fix #72.

In release builds, Swift <=5.7 may return the wrong tag for single-case
enums that nest another enum. We can work around this by always
returning "0" as the tag for single case enums.
@stephencelis
Copy link
Member Author

Reported upstream in swiftlang/swift#61708

@tgrapperon
Copy link
Contributor

For future reference, the issue that was fixed is #71 and not #72.

@stephencelis
Copy link
Member Author

@tgrapperon Whoops! Typo. Fixed thanks!

johankool pushed a commit to johankool/swift-case-paths that referenced this pull request Nov 2, 2024
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.

Fail to extract cases with 1-case enums and Any associated values
3 participants