Skip to content

Commit

Permalink
Merge pull request #1072 from JuliaSymbolics/myb/quot
Browse files Browse the repository at this point in the history
Quote symbol
  • Loading branch information
YingboMa authored Feb 26, 2024
2 parents 08420a6 + 035b5b8 commit dcac48c
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 dcac48c

Please sign in to comment.