mirror of
https://github.com/NixOS/nix
synced 2025-07-08 02:43:54 +02:00
* Allow empty argument lists in function definitions (e.g., `{}:
bla'). Also allow trailing commas (`{x, y,}: ...') as a unintented consequence. Hopefully the reduce/reduce conflict won't cause any problems.
This commit is contained in:
parent
7046c35843
commit
ca00aa1171
3 changed files with 3 additions and 0 deletions
1
tests/lang/eval-okay-empty-args.nix
Normal file
1
tests/lang/eval-okay-empty-args.nix
Normal file
|
@ -0,0 +1 @@
|
|||
({}: {x,y,}: "${x}${y}") {} {x = "a"; y = "b";}
|
Loading…
Add table
Add a link
Reference in a new issue