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: Avoid hitting ENFORCE for enums #213

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

varungandhi-src
Copy link
Contributor

@varungandhi-src varungandhi-src commented Jul 9, 2024

Motivation

The old code triggered an ENFORCE when encountering enums; this patch fixes that issue.
However, the handling is not quite right, as we're not emitting a definition correctly.
We do emit an extra class def/ref, however, the class is not referenced elsewhere,
the constant is. Follow-up issue for improving that: #214

Test plan

Covered by snapshot tests.

@varungandhi-src varungandhi-src merged commit 527916d into scip-ruby/master Jul 9, 2024
2 checks passed
@varungandhi-src varungandhi-src deleted the vg/fix-enum-failure branch July 9, 2024 10:29
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