diff options
Diffstat (limited to 'tests/functional/lang/eval-okay-autoargs.nix')
-rw-r--r-- | tests/functional/lang/eval-okay-autoargs.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/functional/lang/eval-okay-autoargs.nix b/tests/functional/lang/eval-okay-autoargs.nix new file mode 100644 index 000000000..815f51b1d --- /dev/null +++ b/tests/functional/lang/eval-okay-autoargs.nix @@ -0,0 +1,15 @@ +let + + foobar = "foobar"; + +in + +{ xyzzy2 ? xyzzy # mutually recursive args +, xyzzy ? "blaat" # will be overridden by --argstr +, fb ? foobar +, lib # will be set by --arg +}: + +{ + result = lib.concat [xyzzy xyzzy2 fb]; +} |