mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
turn toplevel expects into inline expects
This commit is contained in:
parent
3b60acb938
commit
5df489ba23
3 changed files with 60 additions and 3 deletions
|
@ -4766,6 +4766,8 @@ fn build_pending_specializations<'a>(
|
|||
// mark this symbol as a top-level thunk before any other work on the procs
|
||||
module_thunks.push(symbol);
|
||||
|
||||
let expr_var = Variable::EMPTY_RECORD;
|
||||
|
||||
let is_host_exposed = true;
|
||||
|
||||
// If this is an exposed symbol, we need to
|
||||
|
@ -4805,6 +4807,8 @@ fn build_pending_specializations<'a>(
|
|||
);
|
||||
}
|
||||
|
||||
let body = roc_can::expr::convert_toplevel_expect(body);
|
||||
|
||||
let proc = PartialProc {
|
||||
annotation: expr_var,
|
||||
// This is a 0-arity thunk, so it has no arguments.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue