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

Compilation failure related to complex types #48

Open
Mammux opened this issue Jul 25, 2024 · 2 comments
Open

Compilation failure related to complex types #48

Mammux opened this issue Jul 25, 2024 · 2 comments

Comments

@Mammux
Copy link
Contributor

Mammux commented Jul 25, 2024

I seem to be encountering a similar problem as in #28 and #30.

error[E0412]: cannot find type `NestedMsg` in this scope
error[E0369]: binary operation `==` cannot be applied to type `Option<NestedMsgList>`

https://gist.github.com/Mammux/7507f743167d683f44b00c8af1822c36

@Mammux
Copy link
Contributor Author

Mammux commented Jul 26, 2024

Looks like Element.implement() could look at self.complex_type.sequence.element and recursively call implement() on that and add it to the TokenStream, but I don't understand the code well enough to make it work. Element does not implement implement_childs(), I think.

@Mammux
Copy link
Contributor Author

Mammux commented Jul 26, 2024

I added the generated code (using store_generated_code) to the gist.

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