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

codegen: add support for abstract classes #80

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

jagobagascon
Copy link
Contributor

Abstract classes only contain static methods (they implement a static interface) and the code generation was failing because we were trying to generate their signature. The signature is used to create new instances of generic classes, so we can skip its generation on abstract classes.

The commit also removes the class struct and its constructor, since they were unused.

fixes #79

Abstract classes only contain static methods (they implement a static
interface) and the code generation was failing because we were trying to
generate their signature. The signature is used to create new instances
of generic classes, so we can skip its generation on abstract classes.

The commit also removes the class struct and its constructor, since they
were unused.

fixes #79
@seppestas
Copy link

Thanks a lot! I spent some time trying to get this to work, but it helps if you're familiar with the codebase. In the meantime, I figured out I don't actually need WinRT for my use-case though, so I might not end up using this. Still, I'm sure someone else will!

@jagobagascon jagobagascon merged commit 9071442 into main Oct 11, 2023
2 checks passed
@jagobagascon jagobagascon deleted the feature/add-support-for-abstract-classes branch October 11, 2023 13:12
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.

Add support for abstract classes
3 participants