Skip to content

ArrayInterface 4 broke OptionallyStaticUnitRange iteration #239

@chriselrod

Description

@chriselrod
julia> using ArrayInterface, Static

julia> for k  static(1):static(5); @show k; end
k = 1
k = 2
k = 3
k = 4
k = 5
ERROR: BoundsError: attempt to access Missing at index [1]
Stacktrace:
 [1] top-level scope
   @ ./REPL[6]:1

julia> for k  static(1):static(2):static(5); @show k; end
k = 1
k = 3
k = 5

iterate should return nothing and not missing.

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