about summary refs log tree commit diff
diff options
context:
space:
mode:
-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 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
     }