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 11.0 beta
Toolchain: Swift Development Snapshot 2019-06-06
macOS 10.14.5
Linux: Ubuntu18, master branch
master
md5: 7032c235831ed1e8dcd7a24ae66eec4a
Issue Description:
The following will compile and run on Linux but fails to compile on Darwin.
import Foundation let str = "String" let nsstr = NSString("NSString") print(str.isEqual(to: "String")) print(nsstr.isEqual(to: "NSString"))
isEqual(to: ) is a method on NSString and on Linux is written in Swift, on Darwin in Objective-C.
isEqual(to: )
NSString
However if the method on NSString is written in Swift, it will work on Darwin and Linux:
import Foundation extension NSString { func isEqual2(to: NSString) -> Bool { return self == to } } let str = "String" let nsstr = NSString("NSString") print(str.isEqual2(to: "String")) print(nsstr.isEqual2(to: "NSString"))
The text was updated successfully, but these errors were encountered:
cc @millenomi
Sorry, something went wrong.
No branches or pull requests
Environment
Xcode 11.0 beta
Toolchain: Swift Development Snapshot 2019-06-06
macOS 10.14.5
Linux: Ubuntu18,
master
branchAdditional Detail from JIRA
md5: 7032c235831ed1e8dcd7a24ae66eec4a
Issue Description:
The following will compile and run on Linux but fails to compile on Darwin.
isEqual(to: )
is a method onNSString
and on Linux is written in Swift, on Darwin in Objective-C.However if the method on
NSString
is written in Swift, it will work on Darwin and Linux:The text was updated successfully, but these errors were encountered: