in(x, ::StepRangeLen)
fails when step is zero
#41784
Labels
good first issue
Indicates a good issue for first-time contributors to Julia
Working on #41769, I found an error:
This is because 3 is inside the range, and
step(r) == 0
makesmod
on this line fail.Slightly related is #41402, which deals with a completely different problem, but eventually sees division error in
mod
. Perhapsmod
should check the modulo and throw a better error too?The text was updated successfully, but these errors were encountered: