1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00

tests/function/repl: Characterise the missing doc comment behavior

This commit is contained in:
Robert Hensing 2024-07-15 14:27:09 +02:00
parent 71cb8bf509
commit 8a855296f5
9 changed files with 83 additions and 31 deletions

View file

@ -584,6 +584,8 @@ std::string ExprLambda::showNamePos(const EvalState & state) const
}
void ExprLambda::setDocComment(DocComment docComment) {
// RFC 145 specifies that the innermost doc comment wins.
// See https://github.com/NixOS/rfcs/blob/master/rfcs/0145-doc-strings.md#ambiguous-placement
if (!this->docComment) {
this->docComment = docComment;