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

Fix subclass typedefs #359

Merged
merged 2 commits into from
Aug 16, 2024
Merged

Fix subclass typedefs #359

merged 2 commits into from
Aug 16, 2024

Conversation

jasongin
Copy link
Member

So far the subclass (extends) information has been missing from the generated typedefs. Instead, subclasses included all inherited members, so the hierarchy was flattened. That could cause problems working with some APIs that depend on polymorphism. I'm pretty sure I did it that way because I had trouble getting subclasses to compile without errors originally, and just forgot to come back to it. There were some complexities related to overloads, extension methods, and base type references, which I've managed to resolve now.

This also fixes marshalling of optional AbortSignal to/from CancellationToken which I noticed while testing the semantic-kernel example.

@jasongin jasongin requested a review from vmoroz August 15, 2024 07:17
@jasongin jasongin merged commit 04eb8a0 into main Aug 16, 2024
24 checks passed
@jasongin jasongin deleted the dev/jasongin/typedef-extends branch August 16, 2024 21:37
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