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 Version 8.1 (8B62) Apple Swift version 3.0.1 (swiftlang-800.0.58.6 clang-800.0.42.1)
md5: 60c1e6db25cf28a3cede4cc08fa409cd
Issue Description:
In Swift2.3,
class Foo: NSObject { @objc @noreturn func die() { fatalError("die") } }
was represented in Objective-C as
@interface Foo : NSObject - (void)die;
In Swift3:
class Foo: NSObject { @objc func die() -> Never { fatalError("die") } }
cannot be compiled as:
test.swift:4:14: error: method cannot be marked @objc because its result type cannot be represented in Objective-C @objc func die() -> Never { ^ test.swift:4:23: note: non-'@objc' enums cannot be represented in Objective-C @objc func die() -> Never { ^~~~~
The text was updated successfully, but these errors were encountered:
Compiling Swift 2.3 code results compiler crash. 025284bb
Sorry, something went wrong.
CC: @slavapestov the original author of SE-0102 implementation.
#6545
slavapestov
No branches or pull requests
Environment
Xcode Version 8.1 (8B62)
Apple Swift version 3.0.1 (swiftlang-800.0.58.6 clang-800.0.42.1)
Additional Detail from JIRA
md5: 60c1e6db25cf28a3cede4cc08fa409cd
Issue Description:
In Swift2.3,
was represented in Objective-C as
In Swift3:
cannot be compiled as:
The text was updated successfully, but these errors were encountered: