mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 14:52:55 +00:00
13 lines
237 B
Nix
13 lines
237 B
Nix
|
let
|
||
|
d = 0;
|
||
|
x = 1;
|
||
|
y = { inherit d x; };
|
||
|
z = { inherit (y) d x; };
|
||
|
in
|
||
|
[
|
||
|
(builtins.unsafeGetAttrPos "d" y)
|
||
|
(builtins.unsafeGetAttrPos "x" y)
|
||
|
(builtins.unsafeGetAttrPos "d" z)
|
||
|
(builtins.unsafeGetAttrPos "x" z)
|
||
|
]
|