Skip to content

Commit 7825e81

Browse files
committed
probe ci
1 parent e712a31 commit 7825e81

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ConstructionBase.jl

+3-2
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,12 @@ end
184184
setproperties_object(obj, patch::NamedTuple{()}) = obj
185185

186186
function setproperties_object(obj, patch)
187-
#check_properties_are_fields_except_old_julia(obj)::Nothing
187+
check_properties_are_fields_except_old_julia(obj)::Nothing
188188
nt = getproperties(obj)
189189
nt_new = merge(nt, patch)
190190
check_patch_properties_exist(nt_new, nt, obj, patch)::Nothing
191-
constructorof(typeof(obj))(nt_new...)
191+
args = Tuple(nt_new) # old julia inference prefers if we wrap in Tuple
192+
constructorof(typeof(obj))(args...)
192193
end
193194
if VERSION < v"1.3"
194195
# on old julia versions check_properties_are_fields

0 commit comments

Comments
 (0)