Skip to content

Commit 1a83244

Browse files
removs constraint on vectors
1 parent d9a6343 commit 1a83244

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/utils.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,11 +472,12 @@ function mergedefaults(defaults, varmap, vars)
472472
end
473473
end
474474

475-
function promote_to_concrete(vs::Vector{T}) where {T}
475+
function promote_to_concrete(vs)
476+
T = eltype(vs)
476477
if Base.isconcretetype(T) # nothing to do
477478
vs
478479
else
479480
C = foldl((t, elem)->promote_type(t, eltype(elem)), vs; init=typeof(first(vs)))
480-
convert(Vector{C}, vs)
481+
convert.(C, vs)
481482
end
482483
end

0 commit comments

Comments
 (0)