mirror of
https://github.com/NixOS/nix
synced 2025-07-07 06:01:48 +02:00
* New language feature: domain checks, which check whether a function
argument has a valid value, i.e., is in a certain domain. E.g., { foo : [true false] , bar : ["a" "b" "c"] }: ... This previously could be done using assertions, but domain checks will allow the buildfarm to automatically extract the configuration space from functions.
This commit is contained in:
parent
88acffa20a
commit
f4c5531d92
4 changed files with 40 additions and 13 deletions
7
tests/lang/parse-fail-undef-var-2.nix
Normal file
7
tests/lang/parse-fail-undef-var-2.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
let {
|
||||
|
||||
f = {x, y : ["baz" "bar" z "bat"]}: x + y;
|
||||
|
||||
body = f {x = "foo"; y = "bar";};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue