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:
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"