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
If I have an Objective-C class where I have an init method marked as NS_UNAVAILABLE and a factory method with no arguments and if I try to call that factory method from Swift, then the init method is invoked instead.
Steps to Reproduce:
Create the following Objective-C class:
Attachment: Download
Additional Detail from JIRA
md5: 36bc2e8ec7bacc7ccce7f21da3dc15a7
Issue Description:
If I have an Objective-C class where I have an
init
method marked asNS_UNAVAILABLE
and a factory method with no arguments and if I try to call that factory method from Swift, then the init method is invoked instead.Steps to Reproduce:
Create the following Objective-C class:
From Swift do:
It's easy to check with the debugger that the
init
method is called instead of the factory method.If I remove the factory method, then the code won't compile and the proper error message is displayed: "'init()' is unavailable"
The text was updated successfully, but these errors were encountered: