can store, but not load recursive fields

This commit is contained in:
Folkert 2020-08-22 16:01:04 +02:00
parent f4e1aa046d
commit ba186bfe09
8 changed files with 400 additions and 100 deletions

View file

@ -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),
)