[fine] Use the right tree to get the environment for an identifier

Can't go up to the parent, that defeats the whole point! Use *my*
environment, not my parent's environment!!
This commit is contained in:
John Doty 2024-01-07 09:13:34 -08:00
parent 2f71946d21
commit 4bd3ac06fa
2 changed files with 16 additions and 10 deletions

View file

@ -0,0 +1,4 @@
let x = y;
x;
// @type-error: 11 cannot find value y here