mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
represent bool closure as unit
This commit is contained in:
parent
6741d93517
commit
441eb02ca3
3 changed files with 50 additions and 32 deletions
|
@ -416,7 +416,11 @@ impl<'a> LambdaSet<'a> {
|
|||
match variant {
|
||||
Never => Layout::Union(UnionLayout::NonRecursive(&[])),
|
||||
Unit | UnitWithArguments => Layout::Struct(&[]),
|
||||
BoolUnion { .. } => Layout::Builtin(Builtin::Int1),
|
||||
BoolUnion { .. } => {
|
||||
// Layout::Builtin(Builtin::Int1),
|
||||
|
||||
Layout::Struct(&[])
|
||||
}
|
||||
ByteUnion(_) => Layout::Builtin(Builtin::Int8),
|
||||
Newtype {
|
||||
arguments: layouts, ..
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue