Skip to content

error creating empty MVector #557

@stevengj

Description

@stevengj

This seems like it should work:

julia> MVector(SVector{0,Float64}())
ERROR: UndefVarError: T not defined
Stacktrace:
 [1] MArray{Tuple{0},T,1,0} where T(::Tuple{}) at /Users/stevenj/.julia/packages/StaticArrays/3ENSR/src/MVector.jl:20
 [2] Type at /Users/stevenj/.julia/packages/StaticArrays/3ENSR/src/MVector.jl:19 [inlined]
 [3] MArray{Tuple{S},T,1,S} where T where S(::SArray{Tuple{0},Float64,1,0}) at /Users/stevenj/.julia/packages/StaticArrays/3ENSR/src/convert.jl:5
 [4] top-level scope at none:0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions