mirror of
https://github.com/NixOS/nix
synced 2025-07-08 06:53:54 +02:00
group inherit by source during Expr::show
for plain inherits this is really just a stylistic choice, but for inherit-from it actually fixes an exponential size increase problem during expr printing (as may happen during assertion failure reporting, on during duplicate attr detection in the parser)
This commit is contained in:
parent
6c08fba533
commit
ecf8b12d60
3 changed files with 31 additions and 5 deletions
|
@ -1 +1 @@
|
|||
(let b = 2; c = { }; in { a = 1; inherit b ; d = (c).d; e = (c).e; f = 3; })
|
||||
(let b = 2; c = { }; in { inherit b; inherit (c) d e; a = 1; f = 3; })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue