Skip to content

PropertyListEncoder: Reference the property on the class itself instead of the options struct #919

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
Sep 18, 2024

Conversation

parkera
Copy link
Contributor

@parkera parkera commented Sep 17, 2024

Use the var on PropertyListEncoder instead of the options struct directly, to support overrides in subclasses.

@parkera parkera requested a review from kperryua September 17, 2024 20:46
@parkera
Copy link
Contributor Author

parkera commented Sep 17, 2024

@swift-ci test

@kperryua
Copy link
Contributor

Appears a type mismatch is causing a compiler error.

@parkera
Copy link
Contributor Author

parkera commented Sep 17, 2024

Yah, that should be PropertyListDecoder.PropertyListFormat actually (which is a type alias for each platform).

@parkera parkera force-pushed the parkera/plist_subclassing branch from abb0021 to ea4a8b1 Compare September 17, 2024 21:00
@parkera
Copy link
Contributor Author

parkera commented Sep 17, 2024

@swift-ci test

@parkera
Copy link
Contributor Author

parkera commented Sep 17, 2024

@swift-ci test

@parkera parkera merged commit 7afb23d into swiftlang:main Sep 18, 2024
3 checks passed
@parkera parkera deleted the parkera/plist_subclassing branch September 18, 2024 18:47
cthielen pushed a commit to cthielen/swift-foundation that referenced this pull request Nov 8, 2024
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.

2 participants