mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-11 14:26:21 +00:00
Fix rigid able bindings to abilities
This commit is contained in:
parent
20e4295eea
commit
65f1bd2907
1 changed files with 3 additions and 0 deletions
|
@ -2746,6 +2746,9 @@ fn type_to_variable<'a>(
|
|||
&Content::RigidVar(a) => {
|
||||
subs.set_content(var, Content::RigidAbleVar(a, ability));
|
||||
}
|
||||
&Content::RigidAbleVar(_, ab) if ab == ability => {
|
||||
// pass, already bound
|
||||
}
|
||||
_ => {
|
||||
let flex_ability = subs.fresh(Descriptor {
|
||||
content: Content::FlexAbleVar(None, ability),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue