* Finally, a real "let" syntax: `let x = ...; ... z = ...; in ...'.
This commit is contained in:
parent
7581cfdee4
commit
ac19b333b3
5 changed files with 21 additions and 3 deletions
14
tests/lang/eval-okay-new-let.nix
Normal file
14
tests/lang/eval-okay-new-let.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
let
|
||||
|
||||
f = z:
|
||||
|
||||
let
|
||||
x = "foo";
|
||||
y = "bar";
|
||||
body = 1; # compat test
|
||||
in
|
||||
z + x + y;
|
||||
|
||||
arg = "xyzzy";
|
||||
|
||||
in f arg
|
Loading…
Add table
Add a link
Reference in a new issue