mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Fix and enable tests involving empty records
This commit is contained in:
parent
88bf6bf1b7
commit
dcd4914ac1
6 changed files with 30 additions and 12 deletions
|
@ -141,6 +141,16 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
impl Wasm32TestResult for () {
|
||||
fn build_wrapper_body(code_builder: &mut CodeBuilder, main_function_index: u32) {
|
||||
// Main's symbol index is the same as its function index, since the first symbols we created were for procs
|
||||
let main_symbol_index = main_function_index;
|
||||
code_builder.call(main_function_index, main_symbol_index, 0, false);
|
||||
code_builder.get_global(0);
|
||||
code_builder.build_fn_header(&[], 0, None);
|
||||
}
|
||||
}
|
||||
|
||||
impl<T, U> Wasm32TestResult for (T, U)
|
||||
where
|
||||
T: Wasm32TestResult + FromWasm32Memory,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue