diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-04-22T11·02+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-04-22T11·02+0000 |
commit | ebade9ff8b8557bdae7cdaf9f70c12ceeb3dc02c (patch) | |
tree | 32a2ea8441ed340fd2a0b3b8ab29f5e51950480f /tests/lang/parse-okay-dup-attrs-5.nix | |
parent | 2d7636529f782b552b634497fd8ac876aae72fcc (diff) |
* Check for duplicate attribute names / function arguments. `make
check' now succeeds :-) * An attribute set such as `{ foo = { enable = true; }; foo.port = 23; }' now parses. It was previously rejected, but I'm too lazy to implement the check. (The only reason to reject it is that the reverse, `{ foo.port = 23; foo = { enable = true; }; }', is rejected, which is kind of ugly.)
Diffstat (limited to 'tests/lang/parse-okay-dup-attrs-5.nix')
-rw-r--r-- | tests/lang/parse-okay-dup-attrs-5.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lang/parse-okay-dup-attrs-5.nix b/tests/lang/parse-okay-dup-attrs-5.nix new file mode 100644 index 000000000000..f4b9efd0c596 --- /dev/null +++ b/tests/lang/parse-okay-dup-attrs-5.nix @@ -0,0 +1,4 @@ +{ + services.ssh = { enable = true; }; + services.ssh.port = 23; +} |