From 908e9ce259710037ae9824a3246143e46e27e867 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sun, 9 Mar 2014 14:24:47 -0400 Subject: If a dynamic attribute name evaluates to null, remove it from the set --- tests/lang/eval-okay-null-dynamic-attrs.exp | 1 + tests/lang/eval-okay-null-dynamic-attrs.nix | 1 + 2 files changed, 2 insertions(+) create mode 100644 tests/lang/eval-okay-null-dynamic-attrs.exp create mode 100644 tests/lang/eval-okay-null-dynamic-attrs.nix (limited to 'tests') diff --git a/tests/lang/eval-okay-null-dynamic-attrs.exp b/tests/lang/eval-okay-null-dynamic-attrs.exp new file mode 100644 index 000000000..27ba77dda --- /dev/null +++ b/tests/lang/eval-okay-null-dynamic-attrs.exp @@ -0,0 +1 @@ +true diff --git a/tests/lang/eval-okay-null-dynamic-attrs.nix b/tests/lang/eval-okay-null-dynamic-attrs.nix new file mode 100644 index 000000000..b060c0bc9 --- /dev/null +++ b/tests/lang/eval-okay-null-dynamic-attrs.nix @@ -0,0 +1 @@ +{ ${null} = true; } == {} -- cgit v1.2.3