* Check for duplicate attribute names / function arguments. `make
check' now succeeds :-)
* An attribute set such as `{ foo = { enable = true; };
  foo.port = 23; }' now parses.  It was previously rejected, but I'm
  too lazy to implement the check.  (The only reason to reject it is
  that the reverse, `{ foo.port = 23; foo = { enable = true; }; }', is
  rejected, which is kind of ugly.)
			
			
This commit is contained in:
		
							parent
							
								
									2d7636529f
								
							
						
					
					
						commit
						ebade9ff8b
					
				
					 5 changed files with 58 additions and 45 deletions
				
			
		|  | @ -1 +1 @@ | |||
| Str("foo eval-okay-context.nix bar",[]) | ||||
| "foo eval-okay-context.nix bar" | ||||
|  |  | |||
							
								
								
									
										9
									
								
								tests/lang/parse-fail-dup-attrs-7.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								tests/lang/parse-fail-dup-attrs-7.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,9 @@ | |||
| rec { | ||||
| 
 | ||||
|   x = 1; | ||||
| 
 | ||||
|   as = { | ||||
|     inherit x; | ||||
|     inherit x; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue