mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
can store, but not load recursive fields
This commit is contained in:
parent
f4e1aa046d
commit
ba186bfe09
8 changed files with 400 additions and 100 deletions
|
@ -1295,6 +1295,8 @@ fn deep_copy_var_help(
|
|||
RecursiveTagUnion(rec_var, tags, ext_var) => {
|
||||
let mut new_tags = MutMap::default();
|
||||
|
||||
let new_rec_var = deep_copy_var_help(subs, max_rank, pools, rec_var);
|
||||
|
||||
for (tag, vars) in tags {
|
||||
let new_vars: Vec<Variable> = vars
|
||||
.into_iter()
|
||||
|
@ -1304,7 +1306,7 @@ fn deep_copy_var_help(
|
|||
}
|
||||
|
||||
RecursiveTagUnion(
|
||||
deep_copy_var_help(subs, max_rank, pools, rec_var),
|
||||
new_rec_var,
|
||||
new_tags,
|
||||
deep_copy_var_help(subs, max_rank, pools, ext_var),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue