From e9b6ecb0ee8e7991a93e4b5ae15e74dcf9ffaa0d Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 3 Sep 2022 01:16:17 +0300 Subject: fix(tvix/eval): propagate scope depth when nesting scopes Change-Id: Id441646db550f6195c2e247a0afbb5c9d91da8a0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6422 Reviewed-by: sterni Tested-by: BuildkiteCI --- tvix/eval/src/compiler/scope.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'tvix/eval') diff --git a/tvix/eval/src/compiler/scope.rs b/tvix/eval/src/compiler/scope.rs index 78012add40aa..d691a1ae7228 100644 --- a/tvix/eval/src/compiler/scope.rs +++ b/tvix/eval/src/compiler/scope.rs @@ -186,6 +186,7 @@ impl Scope { pub fn inherit(&self) -> Self { let mut scope = Self::default(); scope.poisoned_tokens = self.poisoned_tokens.clone(); + scope.scope_depth = self.scope_depth; scope } -- cgit 1.4.1