This website requires JavaScript.
Explore
Help
Sign In
bb010g
/
lix
Watch
0
Star
0
Fork
You've already forked lix
0
forked from
lix-project/lix
Code
Pull requests
Activity
c852ae60da
lix
/
tests
/
functional
/
lang
/
parse-fail-undef-var-2.nix
7 lines
80 B
Nix
Raw
Normal View
History
Unescape
Escape
treewide: Stop using ancient let syntax Shows for how long these tests have not been touched by anyone … Change-Id: I3d0c1209a86283ddb012db4e7d45073264fdd0eb
2024-08-18 15:28:04 +00:00
let
* 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.
2006-07-24 16:35:34 +00:00
f
=
{
x
,
y
:
[
"
b
a
z
"
"
b
a
r
"
z
"
b
a
t
"
]
}:
x
+
y
;
treewide: Stop using ancient let syntax Shows for how long these tests have not been touched by anyone … Change-Id: I3d0c1209a86283ddb012db4e7d45073264fdd0eb
2024-08-18 15:28:04 +00:00
in
f
{
x
=
"
f
o
o
"
;
y
=
"
b
a
r
"
;
}
Copy permalink