mirror of
https://github.com/NixOS/nix
synced 2025-07-07 06:01:48 +02:00
Merge pull request #9926 from 9999years/fix-cycle-detection-in-nix-repl
Fix cycle detection in `nix repl`
This commit is contained in:
commit
e190c20c33
2 changed files with 4 additions and 4 deletions
|
@ -156,7 +156,7 @@ testReplResponseNoRegex '
|
|||
# Same for let expressions
|
||||
testReplResponseNoRegex '
|
||||
let x = { y = { a = 1; }; inherit x; }; in x
|
||||
' '{ x = { ... }; y = { ... }; }'
|
||||
' '{ x = «repeated»; y = { ... }; }'
|
||||
|
||||
# The :p command should recursively print sets, but prevent infinite recursion
|
||||
testReplResponseNoRegex '
|
||||
|
@ -171,4 +171,4 @@ testReplResponseNoRegex '
|
|||
# Same for let expressions
|
||||
testReplResponseNoRegex '
|
||||
:p let x = { y = { a = 1; }; inherit x; }; in x
|
||||
' '{ x = { x = «repeated»; y = { a = 1; }; }; y = «repeated»; }'
|
||||
' '{ x = «repeated»; y = { a = 1; }; }'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue