about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-09-02T22·16+0300
committertazjin <tazjin@tvl.su>2022-09-08T13·36+0000
commite9b6ecb0ee8e7991a93e4b5ae15e74dcf9ffaa0d (patch)
treed90fa0c7f1327e4a77e9747796b23aa29b36a323 /tvix
parent9973ddfcba57e1a2d1a72351814210ab652bd860 (diff)
fix(tvix/eval): propagate scope depth when nesting scopes r/4755
Change-Id: Id441646db550f6195c2e247a0afbb5c9d91da8a0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6422
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix')
-rw-r--r--tvix/eval/src/compiler/scope.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tvix/eval/src/compiler/scope.rs b/tvix/eval/src/compiler/scope.rs
index 78012add40..d691a1ae72 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
     }