[SR-10224] Initing NSObjects via a Generic no longer works in Xcode 10.2 #52624
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 5.0
Attachment: Download
Environment
Xcode 10.2
macOS 10.14.4
Additional Detail from JIRA
md5: e6aafee38146c466a1c8a175a63d363d
Issue Description:
I have attached a playground that works in Xcode 10.1 and not in Xcode 10.2. Basically there is a function that creates a new object based on the generic type used.
This is used heavily in a project I maintain to handle serialization and deserialization of a mix of NSObjects and vanilla Swift objects.
Also, I am calling this a bug because the object that comes back from the function causes a EXC_BAD_ACCESS regardless of if let and what not.
Thanks!
Also, I don't have a workaround yet.
The text was updated successfully, but these errors were encountered: