mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-10 10:02:38 +03:00
Get the correct buitlin to derive from symbol name
This commit is contained in:
parent
ab3ff6e842
commit
1526581542
@ -5238,11 +5238,12 @@ fn late_resolve_ability_specialization<'a>(
|
||||
Resolved::Specialization(symbol) => symbol,
|
||||
Resolved::NeedsGenerated(var) => {
|
||||
let derive_key = roc_derive_key::Derived::builtin(
|
||||
roc_derive_key::DeriveBuiltin::Decoder,
|
||||
member.try_into().expect("derived symbols must be builtins"),
|
||||
env.subs,
|
||||
var,
|
||||
)
|
||||
.expect("not a builtin");
|
||||
.expect("specialization var not derivable!");
|
||||
|
||||
match derive_key {
|
||||
roc_derive_key::Derived::Immediate(imm) => {
|
||||
// The immediate is an ability member itself, so it must be resolved!
|
||||
|
Loading…
Reference in New Issue
Block a user