mirror of
https://github.com/NixOS/nix.git
synced 2025-12-12 03:51:04 +01:00
up
This commit is contained in:
parent
4e776a5be8
commit
4824837685
3 changed files with 9 additions and 1 deletions
1
tests/functional/lang/eval-okay-getattrpos-mapattrs.exp
Normal file
1
tests/functional/lang/eval-okay-getattrpos-mapattrs.exp
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ column = 5; file = "/pwd/lang/eval-okay-getattrpos-mapattrs.nix"; line = 3; }
|
||||
7
tests/functional/lang/eval-okay-getattrpos-mapattrs.nix
Normal file
7
tests/functional/lang/eval-okay-getattrpos-mapattrs.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
let
|
||||
attrs = {
|
||||
a = { };
|
||||
};
|
||||
|
||||
mappedAttrs = builtins.mapAttrs (key: value: value) attrs;
|
||||
in builtins.unsafeGetAttrPos "a" mappedAttrs
|
||||
Loading…
Add table
Add a link
Reference in a new issue