We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f9a5f0 commit 1c12bcbCopy full SHA for 1c12bcb
base/sharedarray.jl
@@ -210,12 +210,12 @@ convert(::Type{Array}, S::SharedArray) = S.s
210
getindex(S::SharedArray) = getindex(S.s)
211
getindex(S::SharedArray, I::Real) = getindex(S.s, I)
212
getindex(S::SharedArray, I::AbstractArray) = getindex(S.s, I)
213
-@nsplat N 1:5 getindex(S::SharedArray, I::NTuple{N,Any}...) = getindex(S.s, I...)
+@nsplat N 1:5 getindex(S::SharedArray, I::NTuple{N,Union(Real,AbstractVector)}...) = getindex(S.s, I...)
214
215
setindex!(S::SharedArray, x) = setindex!(S.s, x)
216
setindex!(S::SharedArray, x, I::Real) = setindex!(S.s, x, I)
217
setindex!(S::SharedArray, x, I::AbstractArray) = setindex!(S.s, x, I)
218
-@nsplat N 1:5 setindex!(S::SharedArray, x, I::NTuple{N,Any}...) = setindex!(S.s, x, I...)
+@nsplat N 1:5 setindex!(S::SharedArray, x, I::NTuple{N,Union(Real,AbstractVector)}...) = setindex!(S.s, x, I...)
219
220
function fill!(S::SharedArray, v)
221
f = S->fill!(S.loc_subarr_1d, v)
0 commit comments