mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Erased functions do not take a func spec
This commit is contained in:
parent
7c8e7bbea3
commit
13d1232f7d
9 changed files with 185 additions and 28 deletions
|
@ -496,6 +496,10 @@ impl<'a> RawFunctionLayout<'a> {
|
|||
matches!(self, RawFunctionLayout::ZeroArgumentThunk(_))
|
||||
}
|
||||
|
||||
pub fn is_erased_function(&self) -> bool {
|
||||
matches!(self, RawFunctionLayout::ErasedFunction(_, _))
|
||||
}
|
||||
|
||||
fn new_help<'b>(
|
||||
env: &mut Env<'a, 'b>,
|
||||
var: Variable,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue