Skip to content

Commit c24e1b2

Browse files
authored
Merge pull request swiftlang#9128 from rudkx/subscript-ambiguity
2 parents bb02b7d + bcdf09d commit c24e1b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/Substring.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,6 @@ extension Substring {
310310

311311
@available(swift, obsoleted: 4)
312312
public subscript(bounds: ClosedRange<Index>) -> String {
313-
return String(self[bounds])
313+
return String(self[bounds] as Substring)
314314
}
315315
}

0 commit comments

Comments
 (0)