Skip to content

Improve extern enum - #3909

Closed
Vexu wants to merge 1 commit into
ziglang:masterfrom
Vexu:improve-extern-enum
Closed

Vexu wants to merge 1 commit into
ziglang:masterfrom
Vexu:improve-extern-enum

Conversation

@Vexu

@Vexu Vexu commented Dec 15, 2019

Copy link
Copy Markdown
Member
  • Multiple same values allowed.
  • Non-exhaustive: else prong always needed in switch.
  • @intToEnum can't fail.

Closes #2115

@andrewrk andrewrk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

✔️

@andrewrk

Copy link
Copy Markdown
Member

Landed in 0f38410

@andrewrk andrewrk closed this Dec 16, 2019
@Vexu
Vexu deleted the improve-extern-enum branch December 18, 2019 22:04
Mouvedia referenced this pull request in ducdetronquito/http Nov 15, 2020
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.

enums should disallow multiple enumerations with the same value

2 participants