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 enum values not having consistent types (GEA-12685) #188

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

kenany
Copy link
Member

@kenany kenany commented Feb 21, 2024

In a constant declaration such as the following:

const (
    First byte = 1
    Second     = 2
)

the constant Second does not have the same type as the constant First. Enums with explicit values need to have the type present on each value. This was already the case for some of the SDK's enums but not all of them, so this patch fixes that.

@kenany kenany requested a review from a team as a code owner February 21, 2024 21:50
In a constant declaration such as the following:

    const (
        First byte = 1
        Second     = 2
    )

the constant `Second` does not have the same type as the constant
`First`. Enums with explicit values need to have the type present on
each value. This was already the case for some of the SDK's enums but
not all of them, so this patch fixes that.
@kenany kenany merged commit 119933e into main Feb 27, 2024
14 checks passed
@kenany kenany deleted the kenany/GEA-12685 branch February 27, 2024 21:54
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.

2 participants