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 generator bug with derived reference in base class #236

Merged
merged 2 commits into from
Mar 19, 2024

Conversation

jasongin
Copy link
Member

@jasongin jasongin commented Mar 19, 2024

Fixes: #233

This fixes a bug in SymbolExtensions while converting symbolic types to runtime types. In the case of a base class that referenced a derived class (and had a nontrivial constructor), the type would not be built even when the buildType=true parameter was specified. It caused a build error:

NotSupportedException: The invoked member is not supported before the type is created.

I suggest hiding whitespace differences when reviewing, since most changed lines are just indentation.

@jasongin jasongin requested a review from vmoroz March 19, 2024 21:37
@jasongin jasongin merged commit 08da4e9 into main Mar 19, 2024
21 checks passed
@jasongin jasongin deleted the dev/jasongin/module-generator-bug branch March 19, 2024 22:03
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.

NotSupportedException : The invoked member is not supported before the type is created error
2 participants