Skip to content

Commit c695b6f

Browse files
authored
Update table.jl (#269)
1 parent c1cd992 commit c695b6f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/table.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,11 @@ function infer_eltype(v::Vector{Any})
409409
hasmissing = true
410410
else
411411
if t != Any && typeof(v[i]) != t
412-
return Any
412+
t = promote_type(t, typeof(v[i]))
413+
if t == Any
414+
return t
415+
end
416+
# return Any
413417
else
414418
t = typeof(v[i])
415419
end

0 commit comments

Comments
 (0)