mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Capture params in nested defs
This commit is contained in:
parent
c85c634387
commit
50887e6265
9 changed files with 35 additions and 7 deletions
|
@ -431,8 +431,10 @@ pub fn canonicalize_module_defs<'a>(
|
|||
PermitShadows(false),
|
||||
);
|
||||
|
||||
env.home_param_symbols.reserve(destructs.len());
|
||||
|
||||
for destruct in destructs.iter() {
|
||||
env.top_level_symbols.insert(destruct.value.symbol);
|
||||
env.home_param_symbols.insert(destruct.value.symbol);
|
||||
}
|
||||
|
||||
let whole_symbol = scope.gen_unique_symbol();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue