mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
fix using the wrong length
This commit is contained in:
parent
1fbd2a7e7b
commit
61f6687dea
1 changed files with 2 additions and 1 deletions
|
@ -1612,7 +1612,8 @@ fn deep_copy_var_help(
|
|||
}
|
||||
|
||||
Alias(symbol, arguments, real_type_var) => {
|
||||
let new_variables = VariableSubsSlice::reserve_into_subs(subs, arguments.len());
|
||||
let new_variables =
|
||||
VariableSubsSlice::reserve_into_subs(subs, arguments.all_variables_len as _);
|
||||
for (target_index, var_index) in (new_variables.indices()).zip(arguments.variables()) {
|
||||
let var = subs[var_index];
|
||||
let copy_var = deep_copy_var_help(subs, max_rank, pools, visited, var);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue