Skip to content

Difference to arrays with respect to indexing with []  #604

@mschauer

Description

@mschauer

I just noticed the discrepancy

julia> (@SVector [1])[]
ERROR: ArgumentError: invalid index: () of type Tuple{}
julia> ([1])[]
1

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