Skip to content

[DI] Properties with init accessors without "initializes" act as stored #67763

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 1 commit into from
Aug 21, 2023

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Aug 5, 2023

Adjust DI to treat init accessor properties that have only 'accesses'
or no restrictions as if they are stored properties, this means that if
such property doesn't have a default initializer users would have to
reference it explicitly in their custom initializers.

We also need to suppress default init synthesis for such cases which
would be done in a followup commit.

Resolves: rdar://113401979

Adjust DI to treat init accessor properties that have only 'accesses'
or no restrictions as if they are stored properties, this means that
if such property doesn't have a default initializer users would have
to reference it explicitly in their custom initializers.

We also need to suppress default init synthesis for such cases which
would be done in a followup commit.

Resolves: rdar://113401979
@xedin xedin requested a review from hborla August 5, 2023 04:05
@xedin
Copy link
Contributor Author

xedin commented Aug 5, 2023

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Aug 18, 2023

@swift-ci please test macOS platform

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