Merge pull request #210976 from clhodapp/fix/extensible-sets

lib: make extender available on self-references
This commit is contained in:
Robert Hensing 2023-01-20 01:08:16 +01:00 committed by GitHub
commit a1b2177ec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ rec {
# Same as `makeExtensible` but the name of the extending attribute is
# customized.
makeExtensibleWithCustomName = extenderName: rattrs:
fix' rattrs // {
fix' (self: (rattrs self) // {
${extenderName} = f: makeExtensibleWithCustomName extenderName (extends f rattrs);
};
});
}