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
md5: 4ed66d866c5965dbcb0805b472d94864
duplicates:
Issue Description:
When writing a cross-platform library that also exports an Objective-C interface, one has to #if entire declarations to prevent errors. Example:
class Foo {
@objc // error on Linux!
func method() { }
}
has to be written as:
#if os(iOS)
@objc
#else
#endif
We should consider ignoring @objc when the Objective-C runtime is not available. (@DougGregor)
The text was updated successfully, but these errors were encountered:
@swift-ci create
Sorry, something went wrong.
No branches or pull requests
Additional Detail from JIRA
md5: 4ed66d866c5965dbcb0805b472d94864
duplicates:
Issue Description:
When writing a cross-platform library that also exports an Objective-C interface, one has to #if entire declarations to prevent errors. Example:
class Foo {
@objc // error on Linux!
func method() { }
}
has to be written as:
class Foo {
#if os(iOS)
@objc
func method() { }
#else
func method() { }
#endif
}
We should consider ignoring @objc when the Objective-C runtime is not available. (@DougGregor)
The text was updated successfully, but these errors were encountered: