Generic classes that get extended by a protocol with conditional conformance seem to be the reason here.
Casting a object to the protocol will not crash it but when calling a function on the casted object even after making sure that the object is conform to the protocol via a guarded cast will crash at runtime.
Environment
Xcode 10.1 (10B61)
Additional Detail from JIRA
md5: 7542aad37ab17588adf8a5268320eb15
Issue Description:
I have a similar code in my project.
The same happened in regular Xcode project with disabled optimizations.
Crash description:
The text was updated successfully, but these errors were encountered: