1
0
Fork 0
forked from lix-project/lix
lix/tests/lang/eval-okay-dynamic-attrs-2.nix
Shea Levy 6f3a51809a Fold dynamic binds handling into addAttr
Since addAttr has to iterate through the AttrPath we pass it, it makes
more sense to just iterate through the AttrNames in addAttr instead. As
an added bonus, this allows attrsets where two dynamic attribute paths
have the same static leading part (see added test case for an example
that failed previously).

Signed-off-by: Shea Levy <shea@shealevy.com>
2013-12-31 17:57:10 -05:00

2 lines
47 B
Nix

{ a."${"b"}" = true; a."${"c"}" = false; }.a.b