mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Handle values that are functions in expects
This commit is contained in:
parent
4046d883c9
commit
a8282f36c3
1 changed files with 3 additions and 1 deletions
|
@ -219,7 +219,9 @@ fn build_clone<'a, 'ctx, 'env>(
|
|||
when_recursive,
|
||||
),
|
||||
|
||||
Layout::LambdaSet(_) => unreachable!("cannot compare closures"),
|
||||
// Since we will never actually display functions (and hence lambda sets), we can just pass
|
||||
// back the nullptr.
|
||||
Layout::LambdaSet(_) => env.ptr_int().const_zero(),
|
||||
|
||||
Layout::Union(union_layout) => {
|
||||
if layout.safe_to_memcpy(env.layout_interner) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue