mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Merge pull request #3050 from rtfeldman/bindgen-tag-payloads
Bindgen single-tag unions
This commit is contained in:
commit
11e2faa87a
6 changed files with 214 additions and 78 deletions
|
@ -2252,7 +2252,8 @@ fn register_tag_arguments<'a>(
|
|||
VariableSubsSlice::default()
|
||||
} else {
|
||||
let new_variables = VariableSubsSlice::reserve_into_subs(subs, arguments.len());
|
||||
let it = (new_variables.indices()).zip(arguments);
|
||||
let it = new_variables.indices().zip(arguments);
|
||||
|
||||
for (target_index, argument) in it {
|
||||
let var = RegisterVariable::with_stack(subs, rank, pools, arena, argument, stack);
|
||||
subs.variables[target_index] = var;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue