[SR-8341] Finish recursive metadata support for resilient types #50869
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
regression
run-time crash
Bug → crash: Swift code crashed during execution
swift 4.2
Attachment: Download
Additional Detail from JIRA
md5: 3922fd6b016c1a251c7cb810b0c9a92a
duplicates:
Issue Description:
Attached is an example project. The code does work within a playground so I suppose it has to do with module boundaries.
Given:
When I just create an instance in the unit test bundle (Just press Command + U in the sample)
I get a runtime crash with the stack showing
This is in the latest Xcode 10 b4 and also with the latest Swift 4.2 toolchain from 22.July.
The runtime crash goes away as soon as I remove the `date: Date?` parameter from the one case of the enum.
That was seriously annoying to track down and I remember having already had one problem with a Date property once. So I wonder: What the heck is up with `Date`s and the Swift runtime? 🙂
See SR-7221
/cc @belkadan @slavapestov
I really want this in Swift 4.2! ❤️
The text was updated successfully, but these errors were encountered: