mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
commit some crimes
This commit is contained in:
parent
e6f6b8c224
commit
3d0f2751f5
3 changed files with 233 additions and 105 deletions
|
@ -109,10 +109,8 @@ impl<'a> ClosureLayout<'a> {
|
|||
|
||||
use UnionVariant::*;
|
||||
match variant {
|
||||
Never | Unit => {
|
||||
// a max closure size of 0 means this is a standard top-level function
|
||||
Ok(None)
|
||||
}
|
||||
Never => Ok(None),
|
||||
Unit => Ok(None),
|
||||
BoolUnion { .. } => {
|
||||
let closure_layout = ClosureLayout::from_bool(arena);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue