Exercise building erased function

This commit is contained in:
Ayaz Hafiz 2023-06-25 20:54:49 -05:00
parent a1eb641bb6
commit d17d8c72ad
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
3 changed files with 51 additions and 17 deletions

View file

@ -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);