* Regression test for listToAttr's behaviour if an attribute name
occurs multiple times.
This commit is contained in:
		
							parent
							
								
									b2ba62170c
								
							
						
					
					
						commit
						02934b1200
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1 +1 @@
 | 
			
		|||
"AA"
 | 
			
		||||
"AAbar"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue