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.
setproperties
1 parent 84a0596 commit 187ce45Copy full SHA for 187ce45
src/types.jl
@@ -94,6 +94,7 @@ 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
+ # Call outer constructor because hash consing cannot be applied in inner constructor
98
@compactified obj::BasicSymbolic begin
99
Sym => Sym{T}(nt_new.name; nt_new...)
100
_ => Unityper.rt_constructor(obj){T}(;nt_new...)
0 commit comments