Skip to content

Another broadcast and inferrence issue #609

Closed
@jw3126

Description

@jw3126

The following fails:

using Test
using StaticArrays
function doit(s, c::Integer)
    (s .- s.^2) ./ c
end

s = @SVector[1.]
c = 2
@inferred doit(s,c)

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