mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Make sure we're generating correct code with has annotations
This commit is contained in:
parent
cbfd76380a
commit
0387eeed23
4 changed files with 80 additions and 17 deletions
|
@ -4750,6 +4750,7 @@ fn get_specialization<'a>(
|
|||
symbol: Symbol,
|
||||
) -> Option<Symbol> {
|
||||
use roc_solve::ability::type_implementing_member;
|
||||
use roc_solve::solve::instantiate_rigids;
|
||||
use roc_unify::unify::unify;
|
||||
|
||||
match env.abilities_store.member_def(symbol) {
|
||||
|
@ -4759,6 +4760,7 @@ fn get_specialization<'a>(
|
|||
}
|
||||
Some(member) => {
|
||||
let snapshot = env.subs.snapshot();
|
||||
instantiate_rigids(env.subs, member.signature_var);
|
||||
let (_, must_implement_ability) = unify(
|
||||
env.subs,
|
||||
symbol_var,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue