mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
add captured symbols field to Closure
This commit is contained in:
parent
6318f032df
commit
b7e099a6c8
3 changed files with 9 additions and 1 deletions
|
@ -814,6 +814,7 @@ fn canonicalize_pending_def<'a>(
|
|||
closure_type: var_store.fresh(),
|
||||
return_type: var_store.fresh(),
|
||||
name: symbol,
|
||||
captured_symbols: MutSet::default(),
|
||||
recursive: Recursive::NotRecursive,
|
||||
arguments: underscores,
|
||||
loc_body: Box::new(body_expr),
|
||||
|
@ -1013,6 +1014,7 @@ fn canonicalize_pending_def<'a>(
|
|||
closure_type,
|
||||
return_type,
|
||||
name: *defined_symbol,
|
||||
captured_symbols: MutSet::default(),
|
||||
recursive: is_recursive,
|
||||
arguments: arguments.clone(),
|
||||
loc_body: body.clone(),
|
||||
|
@ -1146,6 +1148,7 @@ fn canonicalize_pending_def<'a>(
|
|||
closure_type,
|
||||
return_type,
|
||||
name: *defined_symbol,
|
||||
captured_symbols: MutSet::default(),
|
||||
recursive: is_recursive,
|
||||
arguments: arguments.clone(),
|
||||
loc_body: body.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue