diff options
author | Rutger Broekhoff | 2025-07-07 21:52:08 +0200 |
---|---|---|
committer | Rutger Broekhoff | 2025-07-07 21:52:08 +0200 |
commit | ba61dfd69504ec6263a9dee9931d93adeb6f3142 (patch) | |
tree | d6c9b78e50eeab24e0c1c09ab45909a6ae3fd5db /test/testdata/eval-okay-inherit-attr-pos.nix | |
download | verified-dyn-lang-interp-ba61dfd69504ec6263a9dee9931d93adeb6f3142.tar.gz verified-dyn-lang-interp-ba61dfd69504ec6263a9dee9931d93adeb6f3142.zip |
Initialize repository
Diffstat (limited to 'test/testdata/eval-okay-inherit-attr-pos.nix')
-rw-r--r-- | test/testdata/eval-okay-inherit-attr-pos.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/testdata/eval-okay-inherit-attr-pos.nix b/test/testdata/eval-okay-inherit-attr-pos.nix new file mode 100644 index 0000000..017ab1d --- /dev/null +++ b/test/testdata/eval-okay-inherit-attr-pos.nix | |||
@@ -0,0 +1,12 @@ | |||
1 | let | ||
2 | d = 0; | ||
3 | x = 1; | ||
4 | y = { inherit d x; }; | ||
5 | z = { inherit (y) d x; }; | ||
6 | in | ||
7 | [ | ||
8 | (builtins.unsafeGetAttrPos "d" y) | ||
9 | (builtins.unsafeGetAttrPos "x" y) | ||
10 | (builtins.unsafeGetAttrPos "d" z) | ||
11 | (builtins.unsafeGetAttrPos "x" z) | ||
12 | ] | ||