mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Remove lambda set recursion var as appropriate after construction
This commit is contained in:
parent
8dc2a5daa7
commit
81d2d2923d
1 changed files with 4 additions and 0 deletions
|
|
@ -1832,6 +1832,10 @@ impl<'a> LambdaSet<'a> {
|
|||
set_with_variables.push((function_symbol, variables.as_slice()));
|
||||
|
||||
last_function_symbol = Some(function_symbol);
|
||||
|
||||
if let Some(rec_var) = opt_recursion_var.into_variable() {
|
||||
env.remove_seen(rec_var);
|
||||
}
|
||||
}
|
||||
|
||||
let (set, set_with_variables) = if has_duplicate_lambda_names {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue