Skip to content

getindex punning #163

@nsajko

Description

@nsajko

This package defines a getindex method that conflicts with the getindex documentation:

Base.getindex(::Type{Index}, i) = Index(i)

The relevant doc string implies that getindex(type, args...) should return an AbstractVector{type} with args as its elements.

The context here is that I'm working on a PR to Julia to make eltype more precise for some subtypes of Generator, involving things like Iterators.map(Base.Fix1(getindex, Int), [3, 7]). Thus I'm looking for packages with conflicting assumptions using JuliaHub's code search, to avoid unexpectedly breaking the ecosystem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions