From 13c980345f4c0c0d33f406f49efaaad7d5c5119b Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Mon, 19 Aug 2024 11:59:28 +0530 Subject: [PATCH] fix: avoid `ConstructionBase.setproperties` ambiguity --- src/types.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.jl b/src/types.jl index a7b095570..747f1a9c6 100644 --- a/src/types.jl +++ b/src/types.jl @@ -89,7 +89,7 @@ const SIMPLIFIED = 0x01 << 0 #@inline is_of_type(x::BasicSymbolic, type::UInt8) = (x.bitflags & type) != 0x00 #@inline issimplified(x::BasicSymbolic) = is_of_type(x, SIMPLIFIED) -function ConstructionBase.setproperties_object(obj::BasicSymbolic{T}, patch)::BasicSymbolic{T} where T +function ConstructionBase.setproperties(obj::BasicSymbolic{T}, patch::NamedTuple)::BasicSymbolic{T} where T nt = getproperties(obj) nt_new = merge(nt, patch) Unityper.rt_constructor(obj){T}(;nt_new...)