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

Why int list as unnamed type is not allowed in variant types? #15

Open
mryau opened this issue Dec 5, 2016 · 2 comments
Open

Why int list as unnamed type is not allowed in variant types? #15

mryau opened this issue Dec 5, 2016 · 2 comments
Labels

Comments

@mryau
Copy link

mryau commented Dec 5, 2016

Hello, I don't understand why following declarations will be compiled:
type is = int list [@@deriving protobuf { protoc }] type io = | Port of int [@key 1] | Agg of is [@key 2] [@@deriving protobuf { protoc }]
but this declaration:
type io = | Port of int [@key 1] | Agg of int list [@key 2] [@@deriving protobuf { protoc }]
will cause the following error:
File "src/ppx_deriving_protobuf.cppo.ml", line 1113, characters 28-34: Assertion failed

@whitequark whitequark added the bug label Dec 5, 2016
@whitequark
Copy link
Collaborator

An assertion failure is a bug.

@glyh
Copy link

glyh commented Nov 19, 2024

Could anyone provide any hint on how should I fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants