[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:
parent
2f71946d21
commit
4bd3ac06fa
2 changed files with 16 additions and 10 deletions
4
fine/tests/expression/errors/unknown_variable.fine
Normal file
4
fine/tests/expression/errors/unknown_variable.fine
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
let x = y;
|
||||
x;
|
||||
|
||||
// @type-error: 11 cannot find value y here
|
||||
Loading…
Add table
Add a link
Reference in a new issue