mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Introduce the concept of SemanticRepr
This commit is contained in:
parent
c3eeb5e2cc
commit
f100e8753c
17 changed files with 218 additions and 223 deletions
|
@ -1817,9 +1817,8 @@ impl<
|
|||
let new_element_layout = higher_order.passed_function.return_layout;
|
||||
|
||||
let input_list_layout = LayoutRepr::Builtin(Builtin::List(old_element_layout));
|
||||
let input_list_in_layout = self.layout_interner.insert(Layout {
|
||||
repr: input_list_layout,
|
||||
});
|
||||
let input_list_in_layout =
|
||||
self.layout_interner.insert_no_semantic(input_list_layout);
|
||||
|
||||
let caller = self.debug_symbol("caller");
|
||||
let data = self.debug_symbol("data");
|
||||
|
@ -2572,9 +2571,9 @@ impl<
|
|||
);
|
||||
}
|
||||
_ => {
|
||||
let union_in_layout = self.layout_interner.insert(Layout {
|
||||
repr: LayoutRepr::Union(*union_layout),
|
||||
});
|
||||
let union_in_layout = self
|
||||
.layout_interner
|
||||
.insert_no_semantic(LayoutRepr::Union(*union_layout));
|
||||
todo!(
|
||||
"loading from union type: {:?}",
|
||||
self.layout_interner.dbg(union_in_layout)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue