-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/function/repl: Characterise the missing doc comment behavior
- Loading branch information
Showing
9 changed files
with
84 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Nix <nix version> | ||
Type :? for help. | ||
Added <number omitted> variables. | ||
|
||
Function curriedArgs | ||
… defined at | ||
/path/to/tests/functional/repl/doc-comments.nix:48:5 | ||
|
||
A documented function. | ||
|
||
|
||
"Note that users may not expect this to behave as it currently does" | ||
|
||
Function curriedArgs | ||
… defined at | ||
/path/to/tests/functional/repl/doc-comments.nix:50:5 | ||
|
||
The function returned by applying once | ||
|
||
"This won't produce documentation, because we can't actually document arbitrary values" | ||
|
||
error: value does not have documentation | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
:l doc-comments.nix | ||
:doc curriedArgs | ||
x = curriedArgs 1 | ||
"Note that users may not expect this to behave as it currently does" | ||
:doc x | ||
"This won't produce documentation, because we can't actually document arbitrary values" | ||
:doc x 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Nix <nix version> | ||
Type :? for help. | ||
Added <number omitted> variables. | ||
|
||
"Note that this is not yet complete" | ||
|
||
Function documentedFormals | ||
… defined at | ||
/path/to/tests/functional/repl/doc-comments.nix:57:5 | ||
|
||
Finds x | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
:l doc-comments.nix | ||
"Note that this is not yet complete" | ||
:doc documentedFormals |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters