Skip to content

Fix implicit enum values after explicit numbers - #391

Closed
auxalus wants to merge 1 commit into
aspizu:mainfrom
auxalus:fix/implicit-enum-values-349
Closed

auxalus wants to merge 1 commit into
aspizu:mainfrom
auxalus:fix/implicit-enum-values-349

Conversation

@auxalus

@auxalus auxalus commented Oct 2, 2026

Copy link
Copy Markdown

Fixes #349

Advance the implicit enum value counter after an explicit numeric value so the following implicit variant receives the next number. Add a regression test for explicit value 2 followed by implicit value 3.

Tests: not run; Cargo is unavailable in this environment. git diff --check passes.

@aspizu aspizu closed this Oct 2, 2026
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.

Implicit enum values after explicit numeric variants duplicate the explicit value

2 participants