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

Incorrect eltype for Base.OneTo(::StaticInt) #40

Open
cscherrer opened this issue Feb 8, 2022 · 2 comments · May be fixed by #41
Open

Incorrect eltype for Base.OneTo(::StaticInt) #40

cscherrer opened this issue Feb 8, 2022 · 2 comments · May be fixed by #41

Comments

@cscherrer
Copy link
Contributor

Hi, I just noticed this, thought you'd want to know:

julia> eltype(Base.OneTo(static(3)))
StaticInt{3}

This fixes it:

julia> Base.eltype(::Base.OneTo{StaticInt{N}}) where {N} = Int

julia> eltype(Base.OneTo(static(3)))
Int64
@chriselrod
Copy link
Collaborator

Mind making a PR?

@cscherrer cscherrer linked a pull request Feb 8, 2022 that will close this issue
@cscherrer
Copy link
Contributor Author

Ok, I started one. Not sure yet what's going on with the type error though

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

Successfully merging a pull request may close this issue.

2 participants