Skip to content

[TypeChecker] InitAccessors: Fix default initialization of init accessor properties #67769

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 3 commits into from
Aug 21, 2023

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Aug 7, 2023

  • Synthesize default init for init accessor properties

    Fixes a bug were default initializer for an init accessor property
    hasn't been synthesized even when the property is marked as default
    initializable.

  • Fix handling of defaultable init accessor properties during default init synthesis

    Default initializable init properties shouldn't prevent default
    init synthesis and such properties without anything to initialize
    should be considered by it.

Resolves: rdar://113421273

@xedin
Copy link
Contributor Author

xedin commented Aug 7, 2023

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Aug 7, 2023

Should land this after #67763

xedin added 3 commits August 21, 2023 09:04
…r properties

Fixes a bug were default initializer for an init accessor property
hasn't been synthesized even when the property is marked as default
initializable.

Resolves: rdar://113421273
…r properties during default init synthesis

Default initializable init properties shouldn't prevent default
init synthesis and such properties without anything to initialize
should be considered by it.
@xedin
Copy link
Contributor Author

xedin commented Aug 21, 2023

@swift-ci please test

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