fix(tvix/eval): propagate scope depth when nesting scopes
Change-Id: Id441646db550f6195c2e247a0afbb5c9d91da8a0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6422 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
This commit is contained in:
parent
9973ddfcba
commit
e9b6ecb0ee
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue