Properly wrap with newtype-by-void layouts in repl

Closes #4208
This commit is contained in:
Ayaz Hafiz 2022-10-05 11:17:57 -05:00
parent 657346a057
commit e31a16f650
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
5 changed files with 130 additions and 61 deletions

View file

@ -54,8 +54,6 @@ pub fn get_values<'a>(
let expr = {
let variable = *variable;
let content = subs.get_content_without_compacting(variable);
// TODO: pass layout_cache to jit_to_ast directly
let mut layout_cache = LayoutCache::new(layout_interner.fork(), target_info);
let layout = layout_cache.from_var(arena, variable, subs).unwrap();
@ -71,7 +69,7 @@ pub fn get_values<'a>(
app,
"expect_repl_main_fn",
proc_layout,
content,
variable,
subs,
interns,
layout_interner.fork(),