mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Exercise building erased function
This commit is contained in:
parent
a1eb641bb6
commit
d17d8c72ad
3 changed files with 51 additions and 17 deletions
|
@ -8219,7 +8219,14 @@ fn specialize_symbol<'a>(
|
|||
)
|
||||
}
|
||||
}
|
||||
RawFunctionLayout::ErasedFunction(..) => todo_lambda_erasure!(),
|
||||
RawFunctionLayout::ErasedFunction(..) => erased::build_erased_function(
|
||||
env,
|
||||
layout_cache,
|
||||
original,
|
||||
captured,
|
||||
assign_to,
|
||||
result,
|
||||
),
|
||||
RawFunctionLayout::ZeroArgumentThunk(ret_layout) => {
|
||||
// this is a 0-argument thunk
|
||||
let top_level = ProcLayout::new(env.arena, &[], Niche::NONE, ret_layout);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue