We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Sym
ConstructionBase.setproperties
1 parent 2779856 commit d36198fCopy full SHA for d36198f
src/types.jl
@@ -94,7 +94,10 @@ const SIMPLIFIED = 0x01 << 0
94
function ConstructionBase.setproperties(obj::BasicSymbolic{T}, patch::NamedTuple)::BasicSymbolic{T} where T
95
nt = getproperties(obj)
96
nt_new = merge(nt, patch)
97
- Unityper.rt_constructor(obj){T}(;nt_new...)
+ @compactified obj::BasicSymbolic begin
98
+ Sym => Sym{T}(nt_new.name; nt_new...)
99
+ _ => Unityper.rt_constructor(obj){T}(;nt_new...)
100
+ end
101
end
102
103
###
0 commit comments