1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 14:21:48 +02:00

* Check for duplicate attributes and formal parameters in Nix

expressions.
This commit is contained in:
Eelco Dolstra 2005-03-10 11:33:46 +00:00
parent 97c93526da
commit 08df443618
7 changed files with 93 additions and 1 deletions

View file

@ -0,0 +1,4 @@
{ x = 123;
y = 456;
x = 789;
}

View file

@ -0,0 +1,13 @@
let {
as = {
x = 123;
y = 456;
};
bs = {
x = 789;
inherit (as) x;
};
}

View file

@ -0,0 +1,13 @@
let {
as = {
x = 123;
y = 456;
};
bs = rec {
x = 789;
inherit (as) x;
};
}

View file

@ -0,0 +1 @@
{x, y, x}: x