mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Fix deriving of hash ability for recursive tag unions
This commit is contained in:
parent
02b02901bc
commit
2517695ce4
4 changed files with 25 additions and 8 deletions
|
@ -655,7 +655,7 @@ fn make_specialization_decision<P: Phase>(
|
|||
})
|
||||
}
|
||||
}
|
||||
Structure(_) | Alias(_, _, _, _) => {
|
||||
Structure(_) | Alias(_, _, _, _) | RecursionVar { .. } => {
|
||||
let builtin = match ability_member.try_into() {
|
||||
Ok(builtin) => builtin,
|
||||
Err(_) => return SpecializeDecision::Drop,
|
||||
|
@ -691,7 +691,6 @@ fn make_specialization_decision<P: Phase>(
|
|||
| RigidAbleVar(..)
|
||||
| FlexVar(..)
|
||||
| RigidVar(..)
|
||||
| RecursionVar { .. }
|
||||
| LambdaSet(..)
|
||||
| RangedNumber(..) => {
|
||||
internal_error!("unexpected")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue