mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 23:13:47 +00:00
Make sure to report error rather than descending as appropriate
This commit is contained in:
parent
3d2642b282
commit
3e83e42195
5 changed files with 72 additions and 60 deletions
|
@ -1718,14 +1718,12 @@ fn solve(
|
|||
member,
|
||||
specialization_id,
|
||||
}) => {
|
||||
if let Some(Resolved::Specialization(specialization)) =
|
||||
resolve_ability_specialization(
|
||||
subs,
|
||||
abilities_store,
|
||||
member,
|
||||
specialization_variable,
|
||||
)
|
||||
{
|
||||
if let Ok(Resolved::Specialization(specialization)) = resolve_ability_specialization(
|
||||
subs,
|
||||
abilities_store,
|
||||
member,
|
||||
specialization_variable,
|
||||
) {
|
||||
abilities_store.insert_resolved(specialization_id, specialization);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue