Skip to content

Commit

Permalink
Quote symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
YingboMa committed Feb 26, 2024
1 parent 08420a6 commit 035b5b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/struct.jl
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function Base.setproperty!(s::Struct, name::Symbol, x)
end

function symbolic_getproperty(s, name::Symbol)
SymbolicUtils.term(getfield, s, name, type = Real)
SymbolicUtils.term(getfield, s, Meta.quot(name), type = Real)
end
function symbolic_getproperty(s::Union{Arr, Num}, name::Symbol)
wrap(symbolic_getproperty(unwrap(s), name))
Expand Down

0 comments on commit 035b5b8

Please sign in to comment.