-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorcorrectness bug ⚠Bugs that are likely to lead to incorrect results in user code without throwingBugs that are likely to lead to incorrect results in user code without throwinggood first issueIndicates a good issue for first-time contributors to JuliaIndicates a good issue for first-time contributors to Julia
Description
Currently, we have
julia> eachindex((), (1,))
Base.OneTo(1)
From the documentation of eachindex, I expected a DimensionMismatch instead. Like this:
julia> eachindex(1:0, 1:1)
ERROR: DimensionMismatch: all inputs to eachindex must have the same indices, got Base.OneTo(0) and Base.OneTo(1)
(Previous discussion on slack: https://julialang.slack.com/archives/C6A044SQH/p1671032794309049)
Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorcorrectness bug ⚠Bugs that are likely to lead to incorrect results in user code without throwingBugs that are likely to lead to incorrect results in user code without throwinggood first issueIndicates a good issue for first-time contributors to JuliaIndicates a good issue for first-time contributors to Julia