diff options
Diffstat (limited to 'tests/lang')
-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 000000000000..6960cba1d124 --- /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 000000000000..738123141508 --- /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 |