diff --git a/src/implementations/LinearAlgebra.jl b/src/implementations/LinearAlgebra.jl index ef2dd5c..b811581 100644 --- a/src/implementations/LinearAlgebra.jl +++ b/src/implementations/LinearAlgebra.jl @@ -215,7 +215,10 @@ similar_array_type(::Type{Array{T,N}}, ::Type{S}) where {S,T,N} = Array{S,N} similar_array_type(::Type{BitArray{N}}, ::Type{S}) where {S,N} = Array{S,N} similar_array_type(::Type{BitArray{N}}, ::Type{Bool}) where {N} = BitArray{N} -function similar_array_type(::Type{<:SubArray{T,N}}, ::Type{S}) where {S,T,N} +function similar_array_type( + ::Type{<:SubArray{T,N,<:Array{T}}}, + ::Type{S}, +) where {S,T,N} return Array{S,N} end