mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Compile higher-order low-level calls that take functions with no closure args
Closes #3571
This commit is contained in:
parent
7b9b855dcc
commit
2cdb951752
3 changed files with 47 additions and 14 deletions
|
@ -800,13 +800,13 @@ impl<'a> LambdaSet<'a> {
|
|||
}
|
||||
|
||||
pub fn is_represented(&self) -> Option<Layout<'a>> {
|
||||
if let Layout::Struct {
|
||||
field_layouts: &[], ..
|
||||
} = self.representation
|
||||
{
|
||||
None
|
||||
} else {
|
||||
Some(*self.representation)
|
||||
match self.representation {
|
||||
Layout::Struct {
|
||||
field_layouts: &[], ..
|
||||
}
|
||||
| Layout::Builtin(Builtin::Bool)
|
||||
| Layout::Builtin(Builtin::Int(..)) => None,
|
||||
repr => Some(*repr),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue