Skip to content

Commit 410096f

Browse files
authored
Merge pull request #107 from KristofferC/patch-1
`check_patch_field_exist`: remove SnoopCompile noise by explicitly specifying `Base.nothing`
2 parents a4725b0 + 3b752f6 commit 410096f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ConstructionBase.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ setproperties(obj::Tuple , patch::NamedTuple ) = setproperties_tuple(obj
9797
@generated function check_patch_fields_exist(obj, patch)
9898
fnames = fieldnames(obj)
9999
pnames = fieldnames(patch)
100-
pnames fnames ? :(nothing) : :(throw(ArgumentError($("Failed to assign fields $pnames to object with fields $fnames."))))
100+
pnames fnames ? :(Base.nothing) : :(throw(ArgumentError($("Failed to assign fields $pnames to object with fields $fnames."))))
101101
end
102102

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

0 commit comments

Comments
 (0)