I was using relative(to:) to convert any arbitrary RangeExpression to one with an upper and lower bound, but that function may produce invalid ranges for expressions like 1... that cause crashes.
This PR switches to a different, somewhat sillier implementation that should not run into this issue.
Resolves #805.
Resolves rdar://139222774.
Checklist:
[x] Code and documentation should follow the style of the Style Guide.
[x] If public symbols are renamed or modified, DocC references should be updated.
I was using
relative(to:)
to convert any arbitraryRangeExpression
to one with an upper and lower bound, but that function may produce invalid ranges for expressions like1...
that cause crashes.This PR switches to a different, somewhat sillier implementation that should not run into this issue.
Resolves #805. Resolves rdar://139222774.
Checklist: