fix(tvix/eval): thunk all uses of with
				
					
				
			With this all other "weird scope" logic starts working for `with` as well. Change-Id: I0ea1d8c5fbd9cec5084bd574224f77b71ff2b487 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6487 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
		
							parent
							
								
									07ea30370e
								
							
						
					
					
						commit
						627dfabef1
					
				
					 5 changed files with 22 additions and 1 deletions
				
			
		|  | @ -172,7 +172,9 @@ impl Compiler<'_, '_> { | |||
|             ast::Expr::IfElse(if_else) => self.compile_if_else(slot, if_else), | ||||
|             ast::Expr::LetIn(let_in) => self.compile_let_in(slot, let_in), | ||||
|             ast::Expr::Ident(ident) => self.compile_ident(slot, ident), | ||||
|             ast::Expr::With(with) => self.compile_with(slot, with), | ||||
|             ast::Expr::With(with) => { | ||||
|                 self.thunk(slot, &with, |c, w, s| c.compile_with(s, w.clone())) | ||||
|             } | ||||
|             ast::Expr::Lambda(lambda) => self.compile_lambda(slot, lambda), | ||||
|             ast::Expr::Apply(apply) => { | ||||
|                 self.thunk(slot, &apply, move |c, a, s| c.compile_apply(s, a.clone())) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue