Skip to content

Commit 6acee61

Browse files
author
Brad Carman
committed
fix for Catalyst.jl
1 parent 05c6579 commit 6acee61

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/utils.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,11 @@ function promote_to_concrete(vs; tofloat = true, use_union = true)
650650
if isempty(vs)
651651
return vs
652652
end
653+
if vs isa Tuple #special rule, if vs is a Tuple, preserve types, container converted to Array
654+
tofloat = false
655+
use_union = true
656+
vs = Any[vs...]
657+
end
653658
T = eltype(vs)
654659
if Base.isconcretetype(T) && (!tofloat || T === float(T)) # nothing to do
655660
vs

0 commit comments

Comments
 (0)