mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
Specialize bodies with body var, not function var
I'm surprised code generation worked so well without this, before... Closes #2818
This commit is contained in:
parent
f39f7eda03
commit
41dd7d0b4d
3 changed files with 24 additions and 1 deletions
|
@ -3859,6 +3859,7 @@ fn add_def_to_module<'a>(
|
|||
// This is a top-level definition, so it cannot capture anything
|
||||
captured_symbols: CapturedSymbols::None,
|
||||
body,
|
||||
body_var: def.expr_var,
|
||||
// This is a 0-arity thunk, so it cannot be recursive
|
||||
is_self_recursive: false,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue