From 9879e254739d5a36d410ad84bbc9cbf4ef63ac3f Mon Sep 17 00:00:00 2001 From: Puck Meerburg Date: Mon, 25 Nov 2019 13:03:54 +0000 Subject: Add testcase for attrset using __overrides and dynamic attrs (cherry picked from commit cdadbf770855e828a0f64d70a47db43e920ad137) --- tests/lang/eval-okay-attrs6.exp | 1 + tests/lang/eval-okay-attrs6.nix | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 tests/lang/eval-okay-attrs6.exp create mode 100644 tests/lang/eval-okay-attrs6.nix diff --git a/tests/lang/eval-okay-attrs6.exp b/tests/lang/eval-okay-attrs6.exp new file mode 100644 index 000000000000..b46938032e73 --- /dev/null +++ b/tests/lang/eval-okay-attrs6.exp @@ -0,0 +1 @@ +{ __overrides = { bar = "qux"; }; bar = "qux"; foo = "bar"; } diff --git a/tests/lang/eval-okay-attrs6.nix b/tests/lang/eval-okay-attrs6.nix new file mode 100644 index 000000000000..2e5c85483be6 --- /dev/null +++ b/tests/lang/eval-okay-attrs6.nix @@ -0,0 +1,4 @@ +rec { + "${"foo"}" = "bar"; + __overrides = { bar = "qux"; }; +} -- cgit 1.4.1