Skip to content

Commit

Permalink
Fix Expr generation for Const
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenszhu committed Sep 11, 2024
1 parent 835aab4 commit 576cb9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/code.jl
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function toexpr(O, st)
O = substitute_name(O, st)
return issym(O) ? nameof(O) : toexpr(O, st)
elseif isconst(O)
return O.impl.val
return toexpr(O.impl.val, st)
end
O = substitute_name(O, st)

Expand Down

0 comments on commit 576cb9f

Please sign in to comment.