-
Notifications
You must be signed in to change notification settings - Fork 13
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
Impossible type generated for tagged enum variant with anonymous field #24
Comments
A type like this is not even supported by Maybe I could update my library to catch this case and throw an error or emit |
That same test has a commented-out variant |
Thinking about how I might catch this case in my library, I think it's not possible to do statically since it's hard to tell in general if the type |
I have tried adding this test:
This results in generation of the following type:
Type
({"type":"E";}&types.I64)
does not look like something possible to construct.This is a minimal example of what I am trying to do at deltachat/deltachat-core-rust#4602
No idea how this type should look like, maybe should not be allowed similar to
C
.The text was updated successfully, but these errors were encountered: