Skip to content

Commit d36198f

Browse files
committed
Call outer constructor for Sym in ConstructionBase.setproperties
1 parent 2779856 commit d36198f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/types.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ const SIMPLIFIED = 0x01 << 0
9494
function ConstructionBase.setproperties(obj::BasicSymbolic{T}, patch::NamedTuple)::BasicSymbolic{T} where T
9595
nt = getproperties(obj)
9696
nt_new = merge(nt, patch)
97-
Unityper.rt_constructor(obj){T}(;nt_new...)
97+
@compactified obj::BasicSymbolic begin
98+
Sym => Sym{T}(nt_new.name; nt_new...)
99+
_ => Unityper.rt_constructor(obj){T}(;nt_new...)
100+
end
98101
end
99102

100103
###

0 commit comments

Comments
 (0)