diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-10-02 15:52:44 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-10-02 15:52:44 +0000 |
commit | ac19b333b38b2ac4b633bc1203e59c153bbb5c91 (patch) | |
tree | ec5a7ca923c36a30babd391c661e16241057b32e /tests | |
parent | 7581cfdee4001cba719d4d72f8f17f1b4c04ed51 (diff) | |
download | guix-ac19b333b38b2ac4b633bc1203e59c153bbb5c91.tar.gz |
* Finally, a real "let" syntax: `let x = ...; ... z = ...; in ...'.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lang/eval-okay-new-let.exp | 1 | ||||
-rw-r--r-- | tests/lang/eval-okay-new-let.nix | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-new-let.exp b/tests/lang/eval-okay-new-let.exp new file mode 100644 index 0000000000..6960cba1d1 --- /dev/null +++ b/tests/lang/eval-okay-new-let.exp @@ -0,0 +1 @@ +Str("xyzzyfoobar") diff --git a/tests/lang/eval-okay-new-let.nix b/tests/lang/eval-okay-new-let.nix new file mode 100644 index 0000000000..7381231415 --- /dev/null +++ b/tests/lang/eval-okay-new-let.nix @@ -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 |