Skip to content

Convert method for StaticArray shouldn't access data field #943

Open
@andreasnoack

Description

@andreasnoack

#550 introduces

@inline (::Type{SA})(a::StaticArray) where {SA<:SizedArray} = SA(a.data)
that accesses data for StaticArray but since the latter is an abstract type, there is no reason to believe that it has a data field. This is e.g. invalid for https://github.com/SciML/LabelledArrays.jl/blob/bd9cd38dc9f4ef4eb366c16492fa64ca795eb566/src/slarray.jl#L1-L19

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions