Skip to content

Commit 96040b9

Browse files
committed
Fix vars
1 parent 56af95d commit 96040b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ Base.occursin(t::Expression, x::Expression) = isequal(x, t)
6767
vars(exprs) = foldl(vars!, exprs; init = Set{Variable}())
6868
function vars!(vars, O)
6969
isa(O, Operation) || return vars
70+
O.op isa Variable && push!(vars, O.op)
7071
for arg O.args
7172
if isa(arg, Operation)
7273
isa(arg.op, Variable) && push!(vars, arg.op)

0 commit comments

Comments
 (0)