mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 03:42:17 +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 SpecializationTypeKey::*;
|
||||
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 {
|
||||
SpecializeDecision::Specialize(Opaque(*opaque))
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue