Skip to content

Commit

Permalink
Merge pull request #638 from devmotion/dw/syms
Browse files Browse the repository at this point in the history
Remove a seemingly redundant line
  • Loading branch information
bowenszhu authored Aug 24, 2024
2 parents 114c16b + 17e5955 commit cace08a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SymbolicUtils"
uuid = "d1185830-fcd6-423d-90d6-eec64667417b"
authors = ["Shashi Gowda"]
version = "3.4.0"
version = "3.4.1"

[deps]
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
Expand Down
3 changes: 1 addition & 2 deletions src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -996,10 +996,9 @@ variable. So, `h(1, g)` will fail and `h(1, f)` will work.
"""
macro syms(xs...)
defs = map(xs) do x
n, t = _name_type(x)
T = esc(t)
nt = _name_type(x)
n, t = nt.name, nt.type
T = esc(t)
:($(esc(n)) = Sym{$T}($(Expr(:quote, n))))
end
Expr(:block, defs...,
Expand Down

0 comments on commit cace08a

Please sign in to comment.