Skip to content

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

Open
@cscherrer

Description

@cscherrer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions