You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
When accessing a property of an Objective-C property that is `@optional` and returns an IUO value, the compiler will not infer that the IUO value needs to be unwrapped and instead crash.
Workaround is to explicitly unwrap the IUO.
Sample project attached.
The text was updated successfully, but these errors were encountered:
The compiler crash is bad, of course, but not being able to unwrap the inner Optional is correct behavior. Implicit unwrapping only applies to the outermost optional in a type as of Swift 4.2 (in all language modes); see https://swift.org/blog/iuo for more information.
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
Attachment: Download
Environment
Xcode 10 (10A255)
Additional Detail from JIRA
md5: 50a12c53035ffc5d28868a8efa904658
Issue Description:
When accessing a property of an Objective-C property that is `@optional` and returns an IUO value, the compiler will not infer that the IUO value needs to be unwrapped and instead crash.
Workaround is to explicitly unwrap the IUO.
Sample project attached.
The text was updated successfully, but these errors were encountered: