mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Make sure flex unifies with rigid-able vars correctly
This commit is contained in:
parent
715d88510c
commit
294244ae25
1 changed files with 1 additions and 1 deletions
|
@ -2820,7 +2820,7 @@ fn unify_rigid_able<M: MetaCollector>(
|
|||
match other {
|
||||
FlexVar(_) => {
|
||||
// If the other is flex, rigid wins!
|
||||
merge(env, ctx, RigidVar(*name))
|
||||
merge(env, ctx, RigidAbleVar(*name, ability))
|
||||
}
|
||||
FlexAbleVar(_, other_ability) => {
|
||||
if ability == *other_ability {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue