Skip to content

doc comments should see through inherit and attribute selection #11498

Open
@kjeremy

Description

Describe the bug

I have a file that defines some functions with associates doc comments:

lib-impl.nix:

{
  /**
    Describe myFunc
  */
  myFunc = x: ...
}

and a default.nix:

{
  inherit (import ./lib-impl.nix {})
    myFunc;
}

In the repl :doc lib.myFunc does not report any documentation.

Expected behavior

Since there's no documentation in the "outer" scope it should be inherited.

nix-env (Nix) 2.24.5

Additional context

Add any other context about the problem here.

Priorities

Add 👍 to issues you find important.

Metadata

Assignees

No one assigned

    Labels

    bugreplThe Read Eval Print Loop, "nix repl" command and debugger

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions