[SR-14108] DateFormatter
is not copied by copy()
with SwiftFoundation.
#3235
Labels
DateFormatter
is not copied by copy()
with SwiftFoundation.
#3235
Environment
Swift 5.3.2
Ubuntu 20.04
Additional Detail from JIRA
md5: 18c43438b829dd3084a420779b428634
Parent-Task:
func copy()
in subclasses ofFormatter
.Issue Description:
DateFormatter.copy()
returns the same instance not a copied one as you can see with following code:It may be caused by https://github.com/apple/swift-corelibs-foundation/blob/f17b5a25bbc604126a8c6aca8b0b75c2e0291a6c/Sources/Foundation/Formatter.swift#L60-L66
The text was updated successfully, but these errors were encountered: