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:
Vincent Ambo 2022-09-03 01:16:17 +03:00 committed by tazjin
parent 9973ddfcba
commit e9b6ecb0ee

View file

@ -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
}