Closed ConfusedVorlon closed 2 weeks ago
XCode 15.4 defines ExpressibleByNilLiteral
Conforming Types [Optional]
XCode 16 states:
[Optional] Conforms when Wrapped conforms to Escapable.
meanwhile, Escapable seems to have no requirements, but not to be available without
-enable-experimental-feature NonescapableTypes
If I do enable that feature, then compilation fails with a circular reference as soon as I include a key
I recommend reporting this to Apple. It looks like a Swift bug.
It seems to be the same as this issue: https://github.com/apple/swift/issues/74282
You could use this workaround for now: https://github.com/sindresorhus/Defaults/commit/5434b04cb418a6975b5d149edb9ae1da4eb0d9a9
It works as long as you don't use AnySerializable
.
Brilliant - thank you.
fyi - not fixed on beta 2
Fixed in Beta 3 :)
It seems that optional keys are not caught by
The good news is that this is caught in the tests...