[stdlib] Make String("...") non-failable in Swift 4

This commit is contained in:
Dave Abrahams
2017-05-23 15:41:24 -07:00
parent 6cea7c1b5d
commit 807410b99e
3 changed files with 261 additions and 65 deletions

View File

@@ -46,6 +46,7 @@ extension String : StringProtocol {
}
// This initializer satisfies the LosslessStringConvertible conformance
@available(swift, obsoleted: 4, message: "String.init(_:String) is no longer failable")
public init?(_ other: String) {
self.init(other._core)
}