-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disallow ranges with Integer eltype but non-integer step #32439
Conversation
7b4c919
to
08b899d
Compare
I now added the same check for Before: julia> StepRangeLen{Int}(1, 1//2, 5);
julia> collect(ans)
ERROR: InexactError: Int64(3//2) After: julia> StepRangeLen{Int}(1, 1//2, 5);
ERROR: ArgumentError: StepRangeLen{<:Integer} cannot have non-integer step |
I added the same check for |
Can this be in 1.5? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check one item and then merge. Nice & thorough, thanks!
@nanosoldier |
Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. cc @ararslan |
Can this be in 1.6? |
@timholy this good to go from your POV? |
Fixes #32419.