We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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 18.04
Swift 5.2
md5: d5d6e088238b0c54331564ba18cc19ea
Issue Description:
NSString is not LosslessStringConvertible on Linux:
$ cat NSTest.swift import Foundation let nss = "a" as NSString print(nss) print(String(nss)) $ swift NSTest.swift NSTest.swift:5:7: error: initializer 'init(_:)' requires that 'NSString' conform to 'LosslessStringConvertible' print(String(nss)) ^ Swift.String:4:23: note: where 'T' = 'NSString' @inlinable public init<T>(_ value: T) where T : LosslessStringConvertible
Doing the same test from MacOS prints fine:
$ swift NSTest.swift a a
The text was updated successfully, but these errors were encountered:
@swift-ci create
Sorry, something went wrong.
This actually looks to be a missing initialiser, the message
error: initializer 'init(_:)' requires that 'NSString' conform to 'LosslessStringConvertible'
seems to be incorrect.
#2813
spevans
No branches or pull requests
Environment
Ubuntu 18.04
Swift 5.2
Additional Detail from JIRA
md5: d5d6e088238b0c54331564ba18cc19ea
Issue Description:
NSString is not LosslessStringConvertible on Linux:
Doing the same test from MacOS prints fine:
The text was updated successfully, but these errors were encountered: