mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Include specialization symbols
This commit is contained in:
parent
0476d4a65c
commit
8b78e92051
3 changed files with 36 additions and 23 deletions
|
@ -1828,9 +1828,16 @@ fn compact_lambda_set(
|
|||
}
|
||||
};
|
||||
|
||||
let specialized_lambda_set = abilities_store
|
||||
.get_specializaton_lambda_set(*opaque, member, region)
|
||||
.expect("lambda set not resolved, or opaque doesn't specialize");
|
||||
let specialized_lambda_set = match abilities_store.get_specialization(member, *opaque) {
|
||||
None => {
|
||||
// doesn't specialize, we'll have reported an error for this
|
||||
continue;
|
||||
}
|
||||
Some(specialization) => *specialization
|
||||
.specialization_lambda_sets
|
||||
.get(®ion)
|
||||
.expect("lambda set region not resolved"),
|
||||
};
|
||||
|
||||
compact_lambda_set(subs, pools, abilities_store, specialized_lambda_set);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue