mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Move solve and uniq tests into other crates
This commit is contained in:
parent
d8cf402528
commit
a2f5f6f9fb
21 changed files with 910 additions and 47 deletions
|
@ -613,7 +613,7 @@ fn check_for_infinite_type(
|
|||
) {
|
||||
let var = loc_var.value;
|
||||
|
||||
let is_uniqueness_infer = match subs.get(var).content {
|
||||
let is_uniq_infer = match subs.get(var).content {
|
||||
Content::Alias(Symbol::ATTR_ATTR, _, _) => true,
|
||||
_ => false,
|
||||
};
|
||||
|
@ -625,7 +625,7 @@ fn check_for_infinite_type(
|
|||
// try to make a tag union recursive, see if that helps
|
||||
match content {
|
||||
Content::Structure(FlatType::TagUnion(tags, ext_var)) => {
|
||||
if !is_uniqueness_infer {
|
||||
if !is_uniq_infer {
|
||||
let rec_var = subs.fresh_unnamed_flex_var();
|
||||
subs.set_rank(rec_var, description.rank);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue