diff options
author | Vincent Ambo <mail@tazj.in> | 2022-09-02T22·16+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-09-08T13·36+0000 |
commit | e9b6ecb0ee8e7991a93e4b5ae15e74dcf9ffaa0d (patch) | |
tree | d90fa0c7f1327e4a77e9747796b23aa29b36a323 /tvix/eval | |
parent | 9973ddfcba57e1a2d1a72351814210ab652bd860 (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/eval')
-rw-r--r-- | tvix/eval/src/compiler/scope.rs | 1 |
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 } |