You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ISO8601DateFormatter.Options uses var for its static properties. The properties should instead be declared using let to prevent accidental mutation and to let the compiler know that these properties are concurrency-safe.
Regarding the latter point, the following is an example error caused by this issue:
error: reference to static property 'withInternetDateTime' is not concurrency-safe because it involves shared mutable state
The text was updated successfully, but these errors were encountered:
fumoboy007
added a commit
to fumoboy007/swift-corelibs-foundation
that referenced
this issue
Feb 19, 2023
ISO8601DateFormatter.Options
usesvar
for its static properties. The properties should instead be declared usinglet
to prevent accidental mutation and to let the compiler know that these properties are concurrency-safe.Regarding the latter point, the following is an example error caused by this issue:
The text was updated successfully, but these errors were encountered: