From 035b5b8899f777b5356cc0196e4cc2cfef5dbc39 Mon Sep 17 00:00:00 2001 From: Yingbo Ma <mayingbo5@gmail.com> Date: Mon, 26 Feb 2024 13:55:00 -0500 Subject: [PATCH] Quote symbol --- src/struct.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/struct.jl b/src/struct.jl index 102d52f41..8cfc61889 100644 --- a/src/struct.jl +++ b/src/struct.jl @@ -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))