From b90c1a0930545744f76664e1bfbe31f93dbd078a Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Mon, 19 Aug 2024 07:08:44 -0400 Subject: [PATCH] Merge pull request #634 from AayushSabharwal/as/fix-setproperties 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 2202a8df1..4935febc2 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...)