Skip to content

Type weirdness in division of array by scalar #14725

@martinholters

Description

@martinholters

Doing

eltype(Vector{Number}([1, 2, 3]) + 1)
eltype(Vector{Number}([1, 2, 3]) - 1)
eltype(Vector{Number}([1, 2, 3]) * 1)
eltype(Vector{Number}([1, 2, 3]) / 1)

I would expect the result to be Number in all four cases. Indeed, this has been the case prior to dc12cc6 aka 0.4.0-dev+3331. Now however, only the first three yield Number, while the last one - division - gives ANY. Is there a good reason for this inconsistency or is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    regressionRegression in behavior compared to a previous version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions