From 5cabd47394a5bb3076f3f5b5a98425665cddef23 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 8 May 2006 12:52:47 +0000 Subject: * Allow function argument default values to refer to other arguments of the function. Implements NIX-45. --- tests/lang/eval-fail-missing-arg.nix | 1 + tests/lang/eval-fail-undeclared-arg.nix | 1 + 2 files changed, 2 insertions(+) create mode 100644 tests/lang/eval-fail-missing-arg.nix create mode 100644 tests/lang/eval-fail-undeclared-arg.nix (limited to 'tests') 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";} -- cgit 1.4.1