You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Span2D<int>.Empty[0..0,0..0] and similar cases throw ArgumentOutOfRangeException #673
The indexer function Span2D<T>.Item[Range row, Range column] is similar to Span<T>.Item[Range range]. However, the latter returns an empty span when range's Start and End both equal the length of the span. The same is not true for the former's row and column arguments.
Regression
Not a regression
Steps to reproduce
These lines of code cause an ArgumentOutOfRangeException to be thrown:
Activity
OswaldHurlem commentedon May 30, 2023
Appreciated 👍