Skip to content

Commit 24b59df

Browse files
committed
Use getfield for setfields
1 parent a7abddc commit 24b59df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ConstructionBase.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ setproperties_object(obj, patch::NamedTuple{()}) = obj
206206
pnames = fieldnames(patch)
207207
for fname in fieldnames(obj)
208208
source = fname in pnames ? :patch : :obj
209-
push!(args, :(getproperty($source, $(QuoteNode(fname)))))
209+
push!(args, :(getfield($source, $(QuoteNode(fname)))))
210210
end
211211
:(constructorof(typeof(obj))($(args...)))
212212
end

0 commit comments

Comments
 (0)