mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
deal with Frac * -> Dec
This commit is contained in:
parent
01032c3b11
commit
1b7fdc9522
1 changed files with 4 additions and 1 deletions
|
@ -141,8 +141,11 @@ impl FlatInspectable {
|
|||
AliasKind::Structural => {
|
||||
Self::from_var(subs, real_var)
|
||||
}
|
||||
// Special case, an unbound `Frac *` will become a `Dec`.
|
||||
AliasKind::Opaque if matches!(*subs.get_content_without_compacting(real_var), Content::FlexVar(_) | Content::FlexAbleVar(_, _)) => {
|
||||
Immediate(Symbol::INSPECT_DEC)
|
||||
}
|
||||
AliasKind::Opaque if sym.is_builtin() => {
|
||||
// TODO: Is this correct for all builtins? It is at least required for the Num wrapper types.
|
||||
Self::from_var(subs, real_var)
|
||||
}
|
||||
AliasKind::Opaque => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue