Skip to content

[Observation] Refinements for init, peer macros, and qualified type emissions #66288

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

Closed
wants to merge 3 commits into from

Conversation

phausler
Copy link
Contributor

@phausler phausler commented Jun 1, 2023

Includes fixes for the following:

Ensure type access is qualified to the module name. e.g. when an imported module ALSO defines Observable make sure the macros don't cause ambiguity.

Transition to peer macros instead of arbitrary member. This removes the arbitrary member emission from using @Observable and favors the peer macro instead.

Lift the initializer requirement by utilizing init accessors for fully formed definite initialization. This removes the error case where types need fully defined initialization of properties. This is dependent upon #66283

@phausler
Copy link
Contributor Author

phausler commented Jun 7, 2023

@swift-ci please test

@phausler phausler closed this Jun 9, 2023
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