* Scoping bug in `with'.
This commit is contained in:
		
							parent
							
								
									221c79013f
								
							
						
					
					
						commit
						1f285cf556
					
				
					 2 changed files with 14 additions and 0 deletions
				
			
		
							
								
								
									
										1
									
								
								tests/lang/eval-okay-with.exp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								tests/lang/eval-okay-with.exp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | |||
| Str("foobar") | ||||
							
								
								
									
										13
									
								
								tests/lang/eval-okay-with.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								tests/lang/eval-okay-with.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,13 @@ | |||
| let { | ||||
| 
 | ||||
|   a = "xyzzy"; | ||||
| 
 | ||||
|   as = { | ||||
|     a = "foo"; | ||||
|     b = "bar"; | ||||
|   }; | ||||
| 
 | ||||
|   x = with as; a + b; | ||||
| 
 | ||||
|   body = x; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue