mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
support zero-sized values (empty record, unit type)
They now use no stack space
This commit is contained in:
parent
b93fe4e341
commit
9d1e2a0ef1
3 changed files with 59 additions and 3 deletions
|
@ -672,6 +672,8 @@ fn from_can<'a>(
|
|||
Expr::Struct(field_tuples.into_bump_slice())
|
||||
}
|
||||
|
||||
EmptyRecord => Expr::Struct(&[]),
|
||||
|
||||
Tag {
|
||||
variant_var,
|
||||
name: tag_name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue