-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
julia> setindex!!([1.0], Real[1.0], :)
1-element Vector{Any}:
1.0The element type here should be Real, but is Any. I think the culprit may be this line:
BangBang.jl/src/NoBang/base.jl
Line 130 in 64fa046
| T = promote_type(eltype(xs), typeof(v)) |
function _setindex(xs::AbstractArray, v, I...)
T = promote_type(eltype(xs), typeof(v))
blahblahThat's fine as long as the I is a single index, but if I is some sort of range-like thing, such as a Colon in my MWE, we should use eltype(v) instead of typeof(v).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels