scope-local variables
This commit is contained in:
parent
fc53305159
commit
6bfb3763d9
|
@ -323,7 +323,7 @@ impl Node for Expression {
|
|||
}
|
||||
|
||||
let stack_position = state.variables.len()
|
||||
- state.variables.iter().position(|x| x == name).unwrap()
|
||||
- state.variables.iter().rposition(|x| x == name).unwrap()
|
||||
- 1;
|
||||
|
||||
dbg!(&state.variables);
|
||||
|
|
Loading…
Reference in a new issue