Skip to content

fix: Avoid hitting ENFORCE for enums - #213

Merged
varungandhi-src merged 1 commit into
scip-ruby/masterfrom
vg/fix-enum-failure
Jul 9, 2024
Merged

varungandhi-src merged 1 commit into
scip-ruby/masterfrom
vg/fix-enum-failure

Conversation

@varungandhi-src

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

Copy link
Copy Markdown
Contributor

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.

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