From 30fc55f2d4209844c7f1b72ffe5a061ae77ddf7e Mon Sep 17 00:00:00 2001 From: KristofferC Date: Tue, 15 Oct 2019 15:40:21 +0200 Subject: [PATCH] add a test for vcat that used to call an ambig convert method --- test/abstractarray.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/abstractarray.jl b/test/abstractarray.jl index bf6c0f78a30ab..8923c5a90105d 100644 --- a/test/abstractarray.jl +++ b/test/abstractarray.jl @@ -995,3 +995,7 @@ end @test getindex(x) == getindex(x, CartesianIndex()) == 10 end end + +@testset "vcat with mixed elements" begin + @test vcat(Nothing[], [missing], [1.0], [Int8(1)]) isa Vector{Union{Missing, Nothing, Float64}} +end