mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
represent empty closure as unit (not void)
This commit is contained in:
parent
1fba3702a8
commit
f43c10373f
2 changed files with 29 additions and 1 deletions
|
@ -599,7 +599,7 @@ impl<'a> LambdaSet<'a> {
|
|||
// this can happen when there is a type error somewhere
|
||||
Ok(LambdaSet {
|
||||
set: &[],
|
||||
representation: arena.alloc(Layout::Union(UnionLayout::NonRecursive(&[]))),
|
||||
representation: arena.alloc(Layout::Struct(&[])),
|
||||
})
|
||||
}
|
||||
_ => panic!("called LambdaSet.from_var on invalid input"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue