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
Ubuntu 14.04, with the swift-2.2-SNAPSHOT-2015-12-10-a toolchain.
$ swiftc --version Swift version 2.2-dev (LLVM 7bae82deaa, Clang 53d04af5ce, Swift 5995ef2acd) Target: x86_64-unknown-linux-gnu
md5: 1dd46996777811aa1e18784b21eadbf9
duplicates:
Issue Description:
The following code compiles on Mac but produces an error on Linux:
import Foundation let string: String = "str" let nsString = string as NSString
The compiler output is:
$ swiftc CoerceToNSString.swift CoerceToNSString.swift:4:16: error: cannot convert value of type 'String' to type 'NSString' in coercion let nsString = string as NSString ^~~~~~
The text was updated successfully, but these errors were encountered:
Probably the same issue as SR-138
Sorry, something went wrong.
Consolidating.
No branches or pull requests
Environment
Ubuntu 14.04, with the swift-2.2-SNAPSHOT-2015-12-10-a toolchain.
Additional Detail from JIRA
md5: 1dd46996777811aa1e18784b21eadbf9
duplicates:
Issue Description:
The following code compiles on Mac but produces an error on Linux:
The compiler output is:
The text was updated successfully, but these errors were encountered: