mirror of
https://github.com/NixOS/nix
synced 2025-07-09 16:13:54 +02:00
add test for inherit-from semantics
This commit is contained in:
parent
9d182e71fb
commit
8669c02468
3 changed files with 9 additions and 0 deletions
6
tests/functional/lang/eval-okay-inherit-from.nix
Normal file
6
tests/functional/lang/eval-okay-inherit-from.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
let
|
||||
inherit (builtins.trace "used" { a = 1; b = 2; }) a b;
|
||||
x.c = 3;
|
||||
y.d = 4;
|
||||
in
|
||||
[ a b rec { x.c = []; inherit (x) c; inherit (y) d; __overrides.y.d = []; } ]
|
Loading…
Add table
Add a link
Reference in a new issue