mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
fix mono tests
This commit is contained in:
parent
8b490b6221
commit
1708484eb5
4 changed files with 743 additions and 674 deletions
|
@ -111,13 +111,6 @@ pub fn basic_type_from_layout<'ctx>(
|
|||
basic_type_from_function_layout(arena, context, args, None, ret_layout, ptr_bytes)
|
||||
}
|
||||
Closure(args, closure_layout, ret_layout) => {
|
||||
// let closure_data = block_of_memory(
|
||||
// context,
|
||||
// // &closure_layout.into_block_of_memory_layout(),
|
||||
// &closure_layout.into_layout(),
|
||||
// ptr_bytes,
|
||||
// );
|
||||
|
||||
let closure_data =
|
||||
basic_type_from_layout(arena, context, &closure_layout.into_layout(), ptr_bytes);
|
||||
|
||||
|
|
|
@ -946,7 +946,6 @@ mod gen_primitives {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn specialize_closure() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
|
|
|
@ -560,7 +560,10 @@ fn layout_from_flat_type<'a>(
|
|||
|
||||
Ok(Layout::Closure(fn_args, closure_layout, ret))
|
||||
}
|
||||
Wrapped(_tags) => todo!(),
|
||||
Wrapped(_tags) => {
|
||||
// Wrapped(Vec<'a, (TagName, &'a [Layout<'a>])>),
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue