mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
fix infinite unfolding of recursive tag union
This commit is contained in:
parent
b4480e212a
commit
5483ec819f
3 changed files with 56 additions and 25 deletions
|
@ -1929,6 +1929,8 @@ fn aliases_to_attr_type(var_store: &mut VarStore, aliases: &mut SendMap<Symbol,
|
|||
_ => unreachable!("`annotation_to_attr_type` always gives back an Attr"),
|
||||
}
|
||||
|
||||
// TODO can we "just" fix this in alias instantiation?
|
||||
// e.g. does this work for a triple-mutually-recursive alias?
|
||||
if let Some(b) = &alias.uniqueness {
|
||||
fix_mutual_recursive_alias(&mut alias.typ, b);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue