New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SR-7927] Crash with renamed objective-c initializer #50462
Comments
@swift-ci create |
Command-line reproduction:
(BTW, I think I forgot to mention this to you in the lab: don't forget to switch your Xcode toolchain back to the default one.) |
Yeah, I don't think we do anything sensible at all if you rename an initializer to not be an initializer. I might have a dup of this. |
Comment by Vitor (JIRA) @huonw Thanks for the help. I'll switch to the xcode embedded toolchain. |
Comment by Vitor (JIRA) @huonw Any update on this ? |
Unfortunately nothing from me. @belkadan did you find a dupe? |
Nope, only the other way around (a method that's not named |
Note that if you control this code you can still import this as an initializer by using a dummy parameter: |
Attachment: Download
Environment
Xcode 10 Beta 1
Xcode 9.3
Xcode 9.4
It does not crash on 9.2
Additional Detail from JIRA
md5: b77ea6e63a849340bed99ac129b18b7a
Issue Description:
using NS_SWIFT_NAME in a given initializer causes assertions to fail.
The text was updated successfully, but these errors were encountered: