Skip to content

Commit

Permalink
substitute bindings before getting current context
Browse files Browse the repository at this point in the history
  • Loading branch information
kuviman committed Dec 7, 2024
1 parent 2663226 commit 3a24495
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,10 @@ impl Kast {
Value::Unit
}
Expr::CurrentContext { data } => {
let ty = data.ty.clone();
let ty = data
.ty
.clone()
.substitute_bindings(self, &mut RecurseCache::new());
self.interpreter
.contexts
.lock()
Expand Down

0 comments on commit 3a24495

Please sign in to comment.