Skip to content

Commit 3661c39

Browse files
committed
SDK overlay: add ABI FIXME
1 parent f3d1ddf commit 3661c39

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/public/SDK/Foundation/Foundation.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,9 @@ extension NSRange {
923923
length = x.count
924924
}
925925

926+
// FIXME(ABI)(compiler limitation): this API should be an extension on Range.
927+
// Can't express it now because the compiler does not support conditional
928+
// extensions with type equality constraints.
926929
public func toRange() -> Range<Int>? {
927930
if location == NSNotFound { return nil }
928931
return location..<(location+length)

0 commit comments

Comments
 (0)