I should be able to search arbitrary types, since I'm the one specifying the comparator function.
Current Behavior
Doesn't compile because of the requirement that the underlying type is intrinsics.type_is_ordered.
Failure Information (for bugs)
Error: 'where' clause evaluated to false:
intrinsics.type_is_ordered(T)
where intrinsics.type_is_ordered(T) #no_bounds_check
^~~~~~~~~~~~~~~~~~~~~~~~~~~~^
With the following definitions:
T :: []int;
A :: [][]int;
Steps to Reproduce
Try to run or build the following minimal code snippet
Context
I believe there is a bug in the implementation of
slice.binary_search_by
. https://github.com/odin-lang/Odin/blob/31b1aef44e1b0178f10f5faa62ceedddda56667b/core/slice/slice.odin#L173-L174Expected Behavior
I should be able to search arbitrary types, since I'm the one specifying the comparator function.
Current Behavior
Doesn't compile because of the requirement that the underlying type is
intrinsics.type_is_ordered
.Failure Information (for bugs)
Steps to Reproduce