This website requires JavaScript.
Explore
Help
Sign In
lix-project
/
lix
Watch
20
Star
57
Fork
You've already forked lix
31
Code
Issues
348
Code Review (Gerrit)
Projects
3
Releases
Wiki
Activity
94ca95714e
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
"
;
}
Reference in a new issue
Copy permalink