fix(tvix/eval): inherit scope poisoning data in nested contexts

Scope poisoning must be inherited across lambda context boundaries,
e.g. if an outer scope has a poisoned `null`, any lambdas defined on
the same level must reference that poisoned identifier correctly.

Change-Id: I1aac64e1c048a6f3bacadb6d78ed295fa439e8b4
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6410
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2022-09-02 01:19:53 +03:00 committed by tazjin
parent 0a13d267f0
commit 5ee89bcf5c
4 changed files with 36 additions and 4 deletions

View file

@ -0,0 +1 @@
42

View file

@ -0,0 +1,4 @@
let
null = 1;
f = n: n + null;
in f 41