aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPuck Meerburg <puck@puckipedia.com>2019-11-25 13:03:54 +0000
committerPuck Meerburg <puck@puckipedia.com>2019-11-25 13:03:54 +0000
commitcdadbf770855e828a0f64d70a47db43e920ad137 (patch)
tree595f20cb00d76031102445c0668080de38570152
parentcd55f91ad2075d5ebb506950dfbc4161cab22db5 (diff)
Add testcase for attrset using __overrides and dynamic attrs
-rw-r--r--tests/lang/eval-okay-attrs6.exp1
-rw-r--r--tests/lang/eval-okay-attrs6.nix4
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-attrs6.exp b/tests/lang/eval-okay-attrs6.exp
new file mode 100644
index 000000000..b46938032
--- /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 000000000..2e5c85483
--- /dev/null
+++ b/tests/lang/eval-okay-attrs6.nix
@@ -0,0 +1,4 @@
+rec {
+ "${"foo"}" = "bar";
+ __overrides = { bar = "qux"; };
+}