-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Codable conformance to some Foundation types #1148
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
Conversation
@swift-ci please test |
@itaiferber does this look good to go? |
@itaiferber could you double chceck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
||
public func encode(to encoder: Encoder) throws { | ||
var container = encoder.container(keyedBy: CodingKeys.self) | ||
try container.encodeIfPresent(self.calendar, forKey: .calendar) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for applying this, BTW. I need to make a similar fix in the Foundation overlay itself.
@bubski Just wondering if there is any further |
@ianpartridge I believe |
Great to hear - thanks @bubski! |
Continuation of #1108 & #1127
This PR mirrors some changes from swiftlang/swift#9715
Added conformances + unit tests for
📝 I had to disable or work around some issues on Linux caused by https://bugs.swift.org/browse/SR-5598.
Broken
TimeZone.current == TimeZone(identifier: TimeZone.current.identifier)
equality causes encode -> decode -> compare roundtrip tests to fail.Not included in this PR
Already implemented