Interpreter - Callables now receive the callee value as an argument
This commit is contained in:
parent
692531ca65
commit
85e9c7db38
4 changed files with 14 additions and 4 deletions
src/interpreter
|
@ -505,7 +505,7 @@ impl ExprNode {
|
|||
),
|
||||
))
|
||||
} else {
|
||||
Ok(callable.call(es, arg_values)?.into())
|
||||
Ok(callable.call(&callee, es, arg_values)?.into())
|
||||
}
|
||||
} else {
|
||||
error(right_paren, "can only call functions and classes")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue