a working version

This commit is contained in:
Folkert 2021-08-18 17:36:27 +02:00
parent 73358b98bd
commit 6284a90785
4 changed files with 181 additions and 66 deletions

View file

@ -4060,7 +4060,7 @@ fn add_def_to_module<'a>(
pattern_vars.push(*var);
}
let layout = match layout_cache.from_var(
let layout = match layout_cache.raw_from_var(
mono_env.arena,
annotation,
mono_env.subs,
@ -4085,7 +4085,7 @@ fn add_def_to_module<'a>(
procs.insert_exposed(
symbol,
ProcLayout::from_layout(mono_env.arena, layout),
ProcLayout::from_raw(mono_env.arena, layout),
mono_env.arena,
mono_env.subs,
def.annotation,