mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Run builtin opaques and abilities through derive key
This commit is contained in:
parent
f079e8c96b
commit
075332ec88
1 changed files with 3 additions and 1 deletions
|
@ -625,7 +625,9 @@ fn make_specialization_decision<P: Phase>(
|
||||||
use Content::*;
|
use Content::*;
|
||||||
use SpecializationTypeKey::*;
|
use SpecializationTypeKey::*;
|
||||||
match subs.get_content_without_compacting(var) {
|
match subs.get_content_without_compacting(var) {
|
||||||
Alias(opaque, _, _, AliasKind::Opaque) if opaque.module_id() != ModuleId::NUM => {
|
Alias(opaque, _, _, AliasKind::Opaque)
|
||||||
|
if !matches!(opaque.module_id(), ModuleId::NUM | ModuleId::BOOL) =>
|
||||||
|
{
|
||||||
if P::IS_LATE {
|
if P::IS_LATE {
|
||||||
SpecializeDecision::Specialize(Opaque(*opaque))
|
SpecializeDecision::Specialize(Opaque(*opaque))
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue