mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
fix recursion layout issue
This commit is contained in:
parent
1aa71113ca
commit
06bf614437
4 changed files with 25 additions and 4 deletions
|
@ -595,6 +595,11 @@ pub fn chase_ext_tag_union(
|
|||
|
||||
chase_ext_tag_union(subs, ext_var, fields)
|
||||
}
|
||||
Content::Structure(FunctionOrTagUnion(tag_name, _, ext_var)) => {
|
||||
fields.push((tag_name, vec![]));
|
||||
|
||||
chase_ext_tag_union(subs, ext_var, fields)
|
||||
}
|
||||
Content::Alias(_, _, var) => chase_ext_tag_union(subs, var, fields),
|
||||
|
||||
content => Err((var, content)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue