Skip to content

Commit

Permalink
unwrap builtin opaques like NUM_NUM
Browse files Browse the repository at this point in the history
  • Loading branch information
bhansconnect committed Nov 28, 2023
1 parent b6956f7 commit b7512af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/compiler/derive_key/src/inspect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ impl FlatInspectable {
AliasKind::Structural => {
Self::from_var(subs, real_var)
}
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 => {
// There are two cases in which `Inspect` can be derived for an opaque
// type.
Expand Down

0 comments on commit b7512af

Please sign in to comment.