Skip to content

getindex for vector creation #2052

Open
@albinahlback

Description

@albinahlback

With

julia> @which Int[1, 2, 3, 4]
getindex(::Type{T}, vals...) where T
     @ Base array.jl:397

we expect to create an array. However, something like

julia> ZZ[1, 2, 3, 4]
julia> ZZ[ZZ(1), ZZ(2), ZZ(3), ZZ(4)]

does not work, but should?

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