mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
make Num.maxInt and Num.minInt work
This commit is contained in:
parent
e01a0970ee
commit
89e01c63d1
3 changed files with 59 additions and 3 deletions
|
@ -2029,6 +2029,20 @@ pub fn with_hole<'a>(
|
|||
env.arena.alloc(Stmt::Ret(assigned)),
|
||||
);
|
||||
|
||||
return result;
|
||||
} else if symbol.module_id() != env.home {
|
||||
// TODO here we assume this is a 0-arity thunk. That's not true in general!
|
||||
let result = call_by_name(
|
||||
env,
|
||||
procs,
|
||||
variable,
|
||||
symbol,
|
||||
std::vec::Vec::new(),
|
||||
layout_cache,
|
||||
assigned,
|
||||
env.arena.alloc(Stmt::Ret(assigned)),
|
||||
);
|
||||
dbg!(&procs.externals_we_need);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue