Skip to content
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

Base.OneTo(true) throws on recent releases and master #52508

Open
nsajko opened this issue Dec 13, 2023 · 4 comments
Open

Base.OneTo(true) throws on recent releases and master #52508

nsajko opened this issue Dec 13, 2023 · 4 comments
Labels
ranges Everything AbstractRange

Comments

@nsajko
Copy link
Contributor

nsajko commented Dec 13, 2023

v1.6:

julia> Base.OneTo(true)
Base.OneTo(true)

nightly:

julia> Base.OneTo(true)
ERROR: ArgumentError: invalid index: true of type Bool
Stacktrace:
 [1] (::Base.var"#throwbool#84")(r::Bool)
   @ Base ./range.jl:453
 [2] Base.OneTo{Bool}(stop::Bool)
   @ Base ./range.jl:454
 [3] Base.OneTo(stop::Bool)
   @ Base ./range.jl:470
 [4] top-level scope
   @ REPL[1]:1
@oscardssmith
Copy link
Member

do you know what release changed this?

@jakobnissen
Copy link
Member

From #31829, which was a reaction to issue #31726

@jishnub
Copy link
Member

jishnub commented Dec 14, 2023

Does this come up in a real-world scenario?

@nsajko
Copy link
Contributor Author

nsajko commented Dec 17, 2023

Label as regression?

@nsajko nsajko added the ranges Everything AbstractRange label Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ranges Everything AbstractRange
Projects
None yet
Development

No branches or pull requests

4 participants