turn toplevel expects into inline expects

This commit is contained in:
Folkert 2022-07-10 19:17:51 +02:00
parent 3b60acb938
commit 5df489ba23
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 60 additions and 3 deletions

View file

@ -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.