Skip to content

Incorrect method signature for arraylike #42

Description

@jakobjpeters
julia> StructUtils.arraylike([1])
false

This line
https://github.com/JuliaServices/StructUtils.jl/blob/main/src/StructUtils.jl#L220

should be:

arraylike(@nospecialize(::Type)) = false
arraylike(@nospecialize(x)) = arraylike(typeof(x))

I can make a PR soon, just wanted to write this down :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions