diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-05-08T12·52+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-05-08T12·52+0000 |
commit | 5cabd47394a5bb3076f3f5b5a98425665cddef23 (patch) | |
tree | b334853dc567f3b8c5fc56dcad1321478b6e1722 /tests | |
parent | 310e605995dc104bee29d330ac135e3e2bb82f97 (diff) |
* Allow function argument default values to refer to other arguments
of the function. Implements NIX-45.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lang/eval-fail-missing-arg.nix | 1 | ||||
-rw-r--r-- | tests/lang/eval-fail-undeclared-arg.nix | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/lang/eval-fail-missing-arg.nix b/tests/lang/eval-fail-missing-arg.nix new file mode 100644 index 000000000000..c4be9797c534 --- /dev/null +++ b/tests/lang/eval-fail-missing-arg.nix @@ -0,0 +1 @@ +({x, y, z}: x + y + z) {x = "foo"; z = "bar";} diff --git a/tests/lang/eval-fail-undeclared-arg.nix b/tests/lang/eval-fail-undeclared-arg.nix new file mode 100644 index 000000000000..cafdf1636272 --- /dev/null +++ b/tests/lang/eval-fail-undeclared-arg.nix @@ -0,0 +1 @@ +({x, z}: x + z) {x = "foo"; y = "bla"; z = "bar";} |