diff --git a/test/arrayops.jl b/test/arrayops.jl index 7187ae5990b79..c19bdf02267c1 100644 --- a/test/arrayops.jl +++ b/test/arrayops.jl @@ -1953,5 +1953,11 @@ end zs = zeros(SparseMatrixCSC([1 2; 3 4]), Complex{Float64}, (2,3)) test_zeros(zs, SparseMatrixCSC{Complex{Float64}}, (2, 3)) - @test_throws MethodError zeros(Float64, [1.]) #19265 + @testset "#19265" begin + @test_throws MethodError zeros(Float64, [1.]) + x = [1.] + test_zeros(zeros(x, Float64), Vector{Float64}, (1,)) + @test x == [1.] + end + end