From ca00aa11714921804afb490d0613086f549fb894 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 15 May 2007 12:14:37 +0000 Subject: * 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. --- tests/lang/eval-okay-empty-args.exp | 1 + tests/lang/eval-okay-empty-args.nix | 1 + 2 files changed, 2 insertions(+) create mode 100644 tests/lang/eval-okay-empty-args.exp create mode 100644 tests/lang/eval-okay-empty-args.nix (limited to 'tests') diff --git a/tests/lang/eval-okay-empty-args.exp b/tests/lang/eval-okay-empty-args.exp new file mode 100644 index 000000000..c386bbc80 --- /dev/null +++ b/tests/lang/eval-okay-empty-args.exp @@ -0,0 +1 @@ +Str("ab",[]) diff --git a/tests/lang/eval-okay-empty-args.nix b/tests/lang/eval-okay-empty-args.nix new file mode 100644 index 000000000..78c133afd --- /dev/null +++ b/tests/lang/eval-okay-empty-args.nix @@ -0,0 +1 @@ +({}: {x,y,}: "${x}${y}") {} {x = "a"; y = "b";} -- cgit v1.2.3