Skip to content

Type weirdness in division of array by scalar (issue #14725 in julia) #198

@bshall

Description

@bshall

After the fix from JuliaLang/julia#14725 the element type of a = Number[2, 2.0, 4//2, 2+0im] / 2 is Number but in StaticArrays you get

eltype(SVector{4, Number}(2, 2.0, 4//2, 2+0im) / 2) == Any

I guess it's just some promotion rules.

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