mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 23:02:27 +00:00
8a10360c91
allowed. So `name1@name2', `{attrs1}@{attrs2}' and so on are now no longer legal. This is no big loss because they were not useful anyway. This also changes the output of builtins.toXML for @-patterns slightly.
17 lines
346 B
Nix
17 lines
346 B
Nix
let
|
|
|
|
f = args@{x, y, z}: x + args.y + z;
|
|
|
|
g = {x, y, z}@args: f args;
|
|
|
|
h = {x ? "d", y ? x, z ? args.x}@args: x + y + z;
|
|
|
|
j = {x, y, z, ...}: x + y + z;
|
|
|
|
in
|
|
f {x = "a"; y = "b"; z = "c";} +
|
|
g {x = "x"; y = "y"; z = "z";} +
|
|
h {x = "D";} +
|
|
h {x = "D"; y = "E"; z = "F";} +
|
|
j {x = "i"; y = "j"; z = "k"; bla = "bla"; foo = "bar";}
|