Open swift-ci opened 5 years ago
Still crashes in master with
Assertion failed: (dependentIvars->Count == numFields), function initObjCClass, file /Volumes/Data/swift-public/swift/stdlib/public/runtime/Metadata.cpp, line 2445.
@mikeash, we have a Radar for this already, right?
Yes, it's rdar://problem/49639321. I added it to this issue.
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.0Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug, RunTimeCrash | |Assignee | None | |Priority | Medium | md5: c4e62080ddb495e4319ea2ab65f82714Issue 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.