mirror of
https://github.com/NixOS/nix
synced 2025-07-08 02:43:54 +02:00
* Sync with the trunk.
This commit is contained in:
commit
fb9368b5a0
37 changed files with 725 additions and 447 deletions
|
@ -1 +1 @@
|
|||
"AA"
|
||||
"AAbar"
|
||||
|
|
|
@ -7,4 +7,5 @@ let
|
|||
a = builtins.listToAttrs list;
|
||||
b = builtins.listToAttrs ( list ++ list );
|
||||
r = builtins.listToAttrs [ (asi "result" [ a b ]) ( asi "throw" (throw "this should not be thrown")) ];
|
||||
in concat (map (x: x.a) r.result)
|
||||
x = builtins.listToAttrs [ (asi "foo" "bar") (asi "foo" "bla") ];
|
||||
in concat (map (x: x.a) r.result) + x.foo
|
||||
|
|
1
tests/lang/eval-okay-overrides.exp
Normal file
1
tests/lang/eval-okay-overrides.exp
Normal file
|
@ -0,0 +1 @@
|
|||
2
|
9
tests/lang/eval-okay-overrides.nix
Normal file
9
tests/lang/eval-okay-overrides.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
let
|
||||
|
||||
overrides = { a = 2; };
|
||||
|
||||
in (rec {
|
||||
__overrides = overrides;
|
||||
x = a;
|
||||
a = 1;
|
||||
}).x
|
Loading…
Add table
Add a link
Reference in a new issue