Skip to content

Commit

Permalink
convert to Symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Apr 15, 2020
1 parent 1261477 commit 257b287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function Expression(ex;mod=Main)
ex.head === :if && (ex = Expr(:call, ifelse, ex.args...))
ex.head === :call || throw(ArgumentError("internal representation does not support non-call Expr"))

op = getproperty(mod,ex.args[1])
op = getproperty(mod,Symbol(ex.args[1]))
args = convert.(Expression, ex.args[2:end])

return Operation(op, args)
Expand Down

0 comments on commit 257b287

Please sign in to comment.