diff --git a/Project.toml b/Project.toml index 62712e923..0f64b21de 100644 --- a/Project.toml +++ b/Project.toml @@ -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" diff --git a/src/types.jl b/src/types.jl index 747f1a9c6..9761e309b 100644 --- a/src/types.jl +++ b/src/types.jl @@ -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...,