Skip to content

Commit bcdf09d

Browse files
committed
[stdlib] Disambiguate a subscript operation.
This is only flagged by some type checker changes that I have, but it appears to be a legitimate ambiguity.
1 parent 0c61db5 commit bcdf09d

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)