mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-11 06:16:21 +00:00
Merge pull request #5188 from roc-lang/i5177
Make sure openness constraint goes under tuples
This commit is contained in:
commit
1891df77b8
2 changed files with 18 additions and 0 deletions
|
@ -1845,6 +1845,11 @@ fn open_tag_union(subs: &mut Subs, var: Variable) {
|
|||
stack.extend(subs.get_subs_slice(fields.variables()));
|
||||
}
|
||||
|
||||
Structure(Tuple(elems, _)) => {
|
||||
// Open up all nested tag unions.
|
||||
stack.extend(subs.get_subs_slice(elems.variables()));
|
||||
}
|
||||
|
||||
Structure(Apply(Symbol::LIST_LIST, args)) => {
|
||||
// Open up nested tag unions.
|
||||
stack.extend(subs.get_subs_slice(args));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue