mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
make a layout for the empty tag union
This commit is contained in:
parent
e4d630108c
commit
5415f458b1
1 changed files with 1 additions and 3 deletions
|
@ -1555,9 +1555,7 @@ fn layout_from_flat_type<'a>(
|
|||
|
||||
Ok(Layout::Union(union_layout))
|
||||
}
|
||||
EmptyTagUnion => {
|
||||
panic!("TODO make Layout for empty Tag Union");
|
||||
}
|
||||
EmptyTagUnion => Ok(Layout::Union(UnionLayout::NonRecursive(&[]))),
|
||||
Erroneous(_) => Err(LayoutProblem::Erroneous),
|
||||
EmptyRecord => Ok(Layout::Struct(&[])),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue