* Regression test for listToAttr's behaviour if an attribute name

occurs multiple times.
This commit is contained in:
Eelco Dolstra 2010-10-23 22:55:30 +00:00
parent b2ba62170c
commit 02934b1200
2 changed files with 3 additions and 2 deletions

View file

@ -1 +1 @@
"AA"
"AAbar"

View file

@ -7,4 +7,5 @@ let
a = builtins.listToAttrs list;
b = builtins.listToAttrs ( list ++ list );
r = builtins.listToAttrs [ (asi "result" [ a b ]) ( asi "throw" (throw "this should not be thrown")) ];
in concat (map (x: x.a) r.result)
x = builtins.listToAttrs [ (asi "foo" "bla") (asi "foo" "bar") ];
in concat (map (x: x.a) r.result) + x.foo