WIP: testing closure types

This commit is contained in:
Aidan Hahn 2021-12-31 11:00:13 -08:00
parent 4cadb1a7eb
commit 69f31db23b
No known key found for this signature in database
GPG key ID: 327711E983899316
7 changed files with 24 additions and 20 deletions

View file

@ -50,7 +50,7 @@ pub fn get_export(env_cfg: bool) -> Function {
}
fn get_export_callback(env_cfg: bool) -> InternalOperation {
|a: Ast, b: Rc<RefCell<VTable>>, c: Rc<RefCell<FTable>>| -> Ctr {
InternalOperation(|a: Ast, b: Rc<RefCell<VTable>>, c: Rc<RefCell<FTable>>| -> Ctr {
let inner = a.borrow_mut();
match &inner.car {
Ctr::Symbol(identifier) => {
@ -98,5 +98,5 @@ fn get_export_callback(env_cfg: bool) -> InternalOperation {
}
return Ctr::None;
}
})
}