mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Make sure "is open" constraints add flex vars at the right rank
This commit is contained in:
parent
2856a38236
commit
ceea194db4
1 changed files with 1 additions and 0 deletions
|
@ -1187,6 +1187,7 @@ fn solve(
|
|||
match new_desc.content {
|
||||
Content::Structure(FlatType::TagUnion(tags, _)) => {
|
||||
let new_ext = subs.fresh_unnamed_flex_var();
|
||||
subs.set_rank(new_ext, new_desc.rank);
|
||||
let new_union = Content::Structure(FlatType::TagUnion(tags, new_ext));
|
||||
new_desc.content = new_union;
|
||||
subs.set(actual, new_desc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue