We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Xcode 7.3 with default Toolchain. Compiling for OSX or iPhone.
md5: 77c9b902eace624d2a5a36f9f5e7c34d
duplicates:
Issue Description:
Let me just give a speedy example (you can do it in a playground):
import Cocoa public extension NSDate { public convenience init?(fail: Bool) { return nil } } let date = NSDate(fail: true)
Expectation: date is nil Result: Program crashes with EXC_BAD_ACCESS
When you do this on a pure Swift class like the following, everything works:
public class X { } extension X { public convenience init?(fail: Bool) { return nil } } let x = X(fail: true)
The text was updated successfully, but these errors were encountered:
Comment by Johannes Schriewer (JIRA)
When throwing from a convenience initializer it crashes too:
enum DateError: ErrorType { case Error } public extension NSDate { public convenience init(fail: Bool) throws { throw DateError.Error } } let date = try NSDate(fail: true)
Sorry, something went wrong.
No branches or pull requests
Environment
Xcode 7.3 with default Toolchain. Compiling for OSX or iPhone.
Additional Detail from JIRA
md5: 77c9b902eace624d2a5a36f9f5e7c34d
duplicates:
Issue Description:
Let me just give a speedy example (you can do it in a playground):
Expectation: date is nil
Result: Program crashes with EXC_BAD_ACCESS
When you do this on a pure Swift class like the following, everything works:
The text was updated successfully, but these errors were encountered: