Skip to content

Commit 5fb0eff

Browse files
fix: add collect_constants! fallback for Symbol
1 parent b8d9de5 commit 5fb0eff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,8 @@ function collect_constants(x)
636636
return constants
637637
end
638638

639+
collect_constants!(::Any, ::Symbol) = nothing
640+
639641
function collect_constants!(constants, arr::AbstractArray)
640642
for el in arr
641643
collect_constants!(constants, el)

0 commit comments

Comments
 (0)