Skip to content

vcat is type-unstable #247

@aplavin

Description

@aplavin

A minimal example:

julia> @code_warntype vcat(StructArray(x=view([1], 1:1:1), y=view([:a], 1:1:1)))
...
Body::StructVector{NamedTuple{(:x, :y), Tuple{Int64, Symbol}}}  # red
...

The eltype of the result is correct, but the inner storage type (Vector{Int} and Vector{Symbol}) are not inferred.

Not sure where the issue lies...

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