mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Correctly instantiate recursion variables under nested aliases
Like we instantiate nested lambda set variables and nested OIOP variables for aliases, we need to do the same for recursion variables.
This commit is contained in:
parent
f2e12724d3
commit
f33651bf6a
4 changed files with 251 additions and 344 deletions
|
@ -463,6 +463,7 @@ pub fn create_alias(
|
|||
let mut hidden = type_variables;
|
||||
|
||||
for var in (vars.iter().map(|lv| lv.value.var))
|
||||
.chain(recursion_variables.iter().copied())
|
||||
.chain(infer_ext_in_output_variables.iter().copied())
|
||||
{
|
||||
hidden.remove(&var);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue