From 3aa6ecfc343bdd3b4f5cb7db2686fa2535f62027 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Tue, 28 Nov 2023 12:59:28 +1300 Subject: [PATCH] Update src/implementations/LinearAlgebra.jl --- src/implementations/LinearAlgebra.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/implementations/LinearAlgebra.jl b/src/implementations/LinearAlgebra.jl index 1678340..92f761c 100644 --- a/src/implementations/LinearAlgebra.jl +++ b/src/implementations/LinearAlgebra.jl @@ -162,7 +162,7 @@ function similar_array_type( return LinearAlgebra.Diagonal{S,similar_array_type(VT, S)} end -similar_array_type(::Type{<:AbstractVector}, ::Type{T}} = Vector{T} +similar_array_type(::Type{<:AbstractVector}, ::Type{T}) where {T} = Vector{T} similar_array_type(::Type{Array{T,N}}, ::Type{S}) where {S,T,N} = Array{S,N}