swiftlang / swift-foundation

The Foundation project
Apache License 2.0
2.36k stars 150 forks source link

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

Closed parkera closed 2 days ago

parkera commented 3 days ago

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

parkera commented 3 days ago

@swift-ci test

kperryua commented 3 days ago

Appears a type mismatch is causing a compiler error.

parkera commented 3 days ago

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

parkera commented 3 days ago

@swift-ci test

parkera commented 3 days ago

@swift-ci test