1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00
nix/tests/functional/lang/eval-okay-patterns.nix
Robert Hensing 96e550efc5 Format .nix files
... with nixfmt (rfc style)
2025-01-24 17:04:02 +01:00

59 lines
511 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";
}