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

Structs are not generated when partials intended to add to them exist in the project #133

Closed
AArnott opened this issue Feb 19, 2021 · 0 comments · Fixed by #139
Closed
Assignees

Comments

@AArnott
Copy link
Member

AArnott commented Feb 19, 2021

For #78 we added the partial modifier to structs to support folks adding members to them in their own code. But the scenario is still broken because as soon as the user adds their partial struct to complement the projected one, the projected one disappears because we suppress generation when a type already exists.

We should consider whether the existing type we find is in the same compilation and is partial. If so, we should go ahead and generate the struct.

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 a pull request may close this issue.

1 participant