mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] Add missing unwraps for backward compatibility
Otherwise, the result would have been an infinite recursion.
This commit is contained in:
@@ -504,7 +504,7 @@ extension String.UnicodeScalarView {
|
||||
swift, obsoleted: 4.0,
|
||||
message: "Any String view index conversion can fail in Swift 4; please unwrap the optional index")
|
||||
public func index(after i: Index?) -> Index {
|
||||
return index(after: i)
|
||||
return index(after: i!)
|
||||
}
|
||||
@available(
|
||||
swift, obsoleted: 4.0,
|
||||
|
||||
Reference in New Issue
Block a user