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

convert doesn't preserve Base.OneTo if the element type is being changed #53806

Closed
mtfishman opened this issue Mar 21, 2024 · 2 comments
Closed

Comments

@mtfishman
Copy link
Contributor

For example:

julia> convert(AbstractVector{Int32}, Base.OneTo(Int32(4)))
Base.OneTo(4)

julia> convert(AbstractVector{Int32}, Base.OneTo(4))
4-element Vector{Int32}:
 1
 2
 3
 4

Tested on v1.10.2 and v1.12.0-DEV.199.

Related to JuliaArrays/FillArrays.jl#353.

@jishnub
Copy link
Contributor

jishnub commented Mar 21, 2024

May be fixed by #48894

@mtfishman
Copy link
Contributor Author

Sorry, this is a duplication of #27138.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants