Skip to content

Commit

Permalink
Whoops, check was backwards
Browse files Browse the repository at this point in the history
  • Loading branch information
serenity4 committed Aug 18, 2024
1 parent 5fb5633 commit 94c6636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ConstructionBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ setproperties(obj::Tuple , patch::NamedTuple ) = setproperties_tuple(obj
@generated function check_patch_fields_exist(obj, patch)
fnames = fieldnames(obj)
pnames = fieldnames(patch)
fnames pnames ? :(nothing) : :(throw(ArgumentError($("Failed to assign fields $pnames to object with fields $fnames."))))
pnames fnames ? :(nothing) : :(throw(ArgumentError($("Failed to assign fields $pnames to object with fields $fnames."))))
end

function setproperties(obj::NamedTuple{fields}, patch::NamedTuple{fields}) where {fields}
Expand Down

0 comments on commit 94c6636

Please sign in to comment.