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

Allow synthesis of Codable for weak/unowned vars #10321

Merged

Conversation

itaiferber
Copy link
Contributor

What's in this pull request?
Allows non-strong (i.e. weak/unowned/unmanaged) vars to participate in Codable synthesis.

The type of non-strong properties is wrapped in a ReferenceStorageType, which does not conform to Codable. This needs to be unwrapped so the inner reference type can be considered for Codable conformance.

The type of non-strong properties is wrapped in a ReferenceStorageType,
which does not conform to Codable. This needs to be unwrapped so the
inner reference type can be considered for Codable conformance.
@itaiferber
Copy link
Contributor Author

@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.

None yet

1 participant