-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Labels
breakingThis change will break codeThis change will break codeneeds decisionA decision on this change is neededA decision on this change is needed
Milestone
Description
This works:
julia> [ 1:3, 4 ]
4-element Int64 Array:
1
2
3
4
and this works:
julia> Uint8[ 1:3 ]
3-element Uint8 Array:
0x01
0x02
0x03
but this doesn't:
julia> Uint8[ 1:3, 4]
ERROR: no method convert(Type{Uint8},Range1{Int64})
in setindex! at array.jl:392
in getindex at array.jl:161
Is this expected behavior? I would expect to be able to construct Uint8 arrays this way.
Metadata
Metadata
Assignees
Labels
breakingThis change will break codeThis change will break codeneeds decisionA decision on this change is neededA decision on this change is needed