Recursive closure layout working again in effect test

This commit is contained in:
Ayaz Hafiz 2022-06-01 10:27:35 -05:00
parent 2e70c9aba4
commit c66f989467
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
6 changed files with 77 additions and 72 deletions

View file

@ -2536,21 +2536,16 @@ fn check_for_infinite_type(
// try to make a union recursive, see if that helps
match subs.get_content_without_compacting(recursive) {
&Content::Structure(FlatType::TagUnion(tags, ext_var)) => {
dbg!(1);
subs.mark_tag_union_recursive(recursive, tags, ext_var);
}
&Content::LambdaSet(subs::LambdaSet {
solved,
recursion_var: _,
}) => {
dbg!(2);
subs.mark_lambda_set_recursive(recursive, solved);
}
_other => {
dbg!(3);
circular_error(subs, problems, symbol, &loc_var)
}
_other => circular_error(subs, problems, symbol, &loc_var),
}
}
}