[SR-11039] Interpreter crash with some types and Codable #53428
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
run-time crash
Bug → crash: Swift code crashed during execution
Environment
$ swift --version
Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5)
Target: x86_64-apple-darwin18.6.0
Additional Detail from JIRA
md5: c4e62080ddb495e4319ea2ab65f82714
Issue Description:
I had a more complicated set of classes, but finally narrowed it down to a type of Date? and trying to use JSONEncoder to encode a class with one property.
If you compile it with swiftc and run it, it works normally.
If you change the type of startDate to String? then it works normally running it with swift.
The text was updated successfully, but these errors were encountered: