diff --git a/src/CircularArrays.jl b/src/CircularArrays.jl index 6121cc8..70f1a1a 100644 --- a/src/CircularArrays.jl +++ b/src/CircularArrays.jl @@ -62,10 +62,9 @@ Base.parent(arr::CircularArray) = arr.data end @inline _similar(arr::CircularArray, ::Type{T}, dims) where T = CircularArray(similar(parent(arr), T, dims)) -@inline Base.similar(arr::CircularArray, ::Type{T}, dims::Dims) where T = _similar(arr, T, dims) @inline Base.similar(arr::CircularArray, ::Type{T}, dims::Tuple{Base.DimOrInd, Vararg{Base.DimOrInd}}) where T = _similar(arr, T, dims) # Ambiguity resolution with Base -@inline Base.similar(arr::CircularArray, ::Type{T}, dims::Tuple{Int64, Vararg{Int64}}) where T = _similar(arr, T, dims) +@inline Base.similar(arr::CircularArray, ::Type{T}, dims::Dims) where T = _similar(arr, T, dims) @inline Base.similar(arr::CircularArray, ::Type{T}, dims::Tuple{Union{Integer, Base.OneTo}, Vararg{Union{Integer, Base.OneTo}}}) where T = _similar(arr, T, dims) function Base.showarg(io::IO, arr::CircularArray, toplevel)