Capture params in nested defs

This commit is contained in:
Agus Zubiaga 2024-08-17 16:13:44 -03:00
parent c85c634387
commit 50887e6265
No known key found for this signature in database
9 changed files with 35 additions and 7 deletions

View file

@ -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();