Skip to content

Unify ctor generation with and without base ctor #1590

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

Merged
merged 2 commits into from
Dec 18, 2020
Merged

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Dec 18, 2020

Fixes an oddity with automatically generated constructors, where if the class has a base class the generated ctor would not be exported along an export class Something.

  • I've read the contributing guidelines

@dcodeIO
Copy link
Member Author

dcodeIO commented Dec 18, 2020

On a second look this also fixes a bug with field initialization when calling an exported constructor externally where the derived class has additional own fields, due to export logic picking up the member named "constructor", which is the inherited base constructor that does not initialize the additional fields.

@dcodeIO dcodeIO merged commit 4b204db into master Dec 18, 2020
@dcodeIO dcodeIO deleted the unify-ensure-ctor branch June 1, 2021 15:20
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.

1 participant