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

Add support for struct types and different type kind nesting #89

Merged
merged 3 commits into from
Nov 23, 2023

Conversation

Sergio0694
Copy link
Contributor

Hey there! I'm looking into using AutoConstructor for my unit tests in https://github.com/Sergio0694/ComputeSharp, but I realized I was missing a couple features for this to work. Specifically, support for struct types and nested types of different kinds. It seems like the support for all this was almost there already, so this PR just includes a few tweaks to get all that to work 🙂

The changes here are these two things:

  • Making [AutoConstructor] also support struct types, and updating the generator
  • Supporting nested type hierarchies of different type kinds (ie. mixed class/struct/interface)

Also added a bunch of unit tests to cover the new scenarios.

@k94ll13nn3
Copy link
Owner

Hey, thanks a lot for the struct support, it looks good. 5.1.0 should be out shortly with it.

@k94ll13nn3 k94ll13nn3 merged commit bade1ba into k94ll13nn3:main Nov 23, 2023
1 check passed
@Sergio0694 Sergio0694 deleted the sergiopedri/struct-support branch November 23, 2023 18:02
@Sergio0694
Copy link
Contributor Author

@k94ll13nn3 that's awesome, thank you for the quick review! 😄

@k94ll13nn3
Copy link
Owner

Thanks again, 5.1.0 is available on NuGet.

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 this pull request may close these issues.

2 participants