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

Variants with zero values #40

Open
dmpetroff opened this issue Jul 14, 2021 · 0 comments
Open

Variants with zero values #40

dmpetroff opened this issue Jul 14, 2021 · 0 comments

Comments

@dmpetroff
Copy link

type t =
  | Zero [@key 0]
  | One  [@key 1]
[@@deriving protobuf]

will produce an error Key 0 is outside of valid range [1:0x1fffffff].

But zero values in protobuf enums are perfectly fine. Probably @key should be aware of context where it is being used.

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

No branches or pull requests

1 participant